|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prozima.pengine.Resource
public class Resource
Resource represents the state of a resource. A resource can perform work
towards the completion of an activity. Each resource has a TimeTable which
defines when the resource is available to perform work. Resources also possess
a CostTable which defines the cost of using the resource to perform work.
| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary | |
|---|---|
Resource |
clone()
|
CostTable |
getCostTable()
Retrieve the CostTable for this resource. |
java.lang.Integer |
getID()
Get the ID of this resource. |
java.lang.String |
getName()
Get the name of the resource. |
TimeTable |
getTimeTable()
Retrieve the TimeTable for this resource. |
boolean |
setCostTable(CostTable inCostTable)
Set the cost table for this resource. |
void |
setID(int inID)
Set the unique ID of this resource. |
boolean |
setName(java.lang.String inName)
Set the name of this resource. |
boolean |
setTimeTable(TimeTable inTimeTable)
Set the availability timetable for this Resource. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Resource()
| Method Detail |
|---|
public Resource clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic CostTable getCostTable()
CostTable of the resource.public java.lang.Integer getID()
public java.lang.String getName()
public TimeTable getTimeTable()
TimeTable for this resource.
public boolean setCostTable(CostTable inCostTable)
inCostTable - A cost table which describes how much should be charged
for use of the resource.
public void setID(int inID)
inID - ID of the resource.public boolean setName(java.lang.String inName)
inName - New name of the Resource. null is not a valid value.
public boolean setTimeTable(TimeTable inTimeTable)
inTimeTable - A timetable that represents time periods when the resource
is available to work. null is not a valid value.
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||