|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.task.Task
edu.wpi.prc.task.Result
public class Result
A Result is a type of Task that contains data that was analyzed by the science application and returned by a client. Results are unique, and can only have one associated volunteer. However, WorkUnits can be sent to more than one client, so there can be several Results for the same WorkUnit. In that case, the data contained in all of the Results should be the same.
Field Summary | |
---|---|
private Volunteer |
volunteer
|
private WorkUnit |
workUnit
|
Fields inherited from class edu.wpi.prc.task.Task |
---|
MIN_PRIORITY |
Constructor Summary | |
---|---|
protected |
Result()
Default constructor is protected so that the Result will either be created by the TaskFactory or the public constructor that takes a task ID will be called. |
protected |
Result(java.lang.String taskID)
Constructor that takes a task ID. |
Method Summary | |
---|---|
void |
delete()
Deletes a Result from the database. |
boolean |
equals(java.lang.Object o)
Tests whether this Result is equal to another. |
Result[] |
find()
Finds all Results in the database that match the attributes set in this Result. |
static Result[] |
findAll()
Finds all Results in the database. |
static Result[] |
findAllEgress()
|
static Result[] |
findAllIngress()
|
static Result[] |
findAllPending()
|
static Result[] |
findAllSpotCheck()
|
Volunteer |
getVolunteer()
|
WorkUnit |
getWorkUnit()
|
void |
removeUser()
Removes the associated volunteer from this result. |
void |
save()
Inserts this Result into the database as a new record. |
void |
setVolunteer(Volunteer user)
|
void |
setWorkUnit(WorkUnit wu)
|
void |
update()
Updates this Result in the database. |
Methods inherited from class edu.wpi.prc.task.Task |
---|
getCreationDate, getData, getDataPartitions, getId, getPriority, getState, getStateStr, getTaskID, isEqual, setCreationDate, setData, setDataPartitions, setId, setPriority, setState, setStateStr, setTaskID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private WorkUnit workUnit
private Volunteer volunteer
Constructor Detail |
---|
protected Result()
protected Result(java.lang.String taskID)
taskID
- The task ID to set.Method Detail |
---|
public WorkUnit getWorkUnit()
public void setWorkUnit(WorkUnit wu)
wu
- The workUnit to set.public Volunteer getVolunteer()
public void setVolunteer(Volunteer user)
user
- The volunteer to set.public void removeUser()
public void save()
save
in class Task
public void update()
update
in class Task
public Result[] find()
public static Result[] findAll()
public static Result[] findAllIngress()
public static Result[] findAllPending()
public static Result[] findAllEgress()
public static Result[] findAllSpotCheck()
public void delete()
delete
in class Task
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare Result to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |