edu.wpi.prc.example.java.generator
Class WorkUnit

java.lang.Object
  extended by edu.wpi.prc.example.java.generator.WorkUnit

public class WorkUnit
extends java.lang.Object

Stores all work unit information retured by the server.getLastWorkUnit XML-RPC.

Author:
James Baldassari

Field Summary
private  java.util.Date creationDate
           
private  byte[] data
           
private  int points
           
private  int priority
           
private  java.lang.String workUnitID
           
 
Constructor Summary
WorkUnit(java.lang.String workUnitID, byte[] data, java.util.Date creationDate, int points, int priority)
           
 
Method Summary
 java.util.Date getCreationDate()
           
 byte[] getData()
           
 int getPoints()
           
 int getPriority()
           
 java.lang.String getWorkUnitID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workUnitID

private final java.lang.String workUnitID

data

private final byte[] data

creationDate

private final java.util.Date creationDate

points

private final int points

priority

private final int priority
Constructor Detail

WorkUnit

public WorkUnit(java.lang.String workUnitID,
                byte[] data,
                java.util.Date creationDate,
                int points,
                int priority)
Parameters:
workUnitID - The work unit ID.
data - The work unit data.
creationDate - The work unit's creation date.
points - The work unit's point value.
priority - The work unit's priority.
Method Detail

getCreationDate

public java.util.Date getCreationDate()
Returns:
Returns the creationDate.

getData

public byte[] getData()
Returns:
Returns the data.

getPoints

public int getPoints()
Returns:
Returns the points.

getPriority

public int getPriority()
Returns:
Returns the priority.

getWorkUnitID

public java.lang.String getWorkUnitID()
Returns:
Returns the work unit ID.