edu.wpi.prc.templates.java.generator
Class WorkUnit
java.lang.Object
edu.wpi.prc.templates.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
Constructor Summary |
WorkUnit(java.lang.String workUnitID,
byte[] data,
java.util.Date creationDate,
int points,
int priority)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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.