|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.reservation.ReservationRequirements
public class ReservationRequirements
Represents all types of requirements a user can request while creating a reservation. This class is used while creating a reservation creation request. Although the user specifies these attributes, Moab retains this information and it needs to be set from moab XML.
Like a reservation, most or all of these requirements may be null depending on the use. For example, when parsing moab XML this entire object can be null for a reservation if no requirements are specified. However, while attempting to create a reservation, some of these must be set. See CreateReservation class for more information.
Constructor Summary | |
---|---|
ReservationRequirements()
|
Method Summary | |
---|---|
int |
compareTo(ReservationRequirements o)
|
java.lang.String |
getArchitecture()
Get the required architecture |
java.lang.String |
getFeatureList()
Get the required feature list |
java.lang.String |
getFeatureMode()
Get the required feature mode |
java.lang.String |
getNetwork()
Get the required network |
int |
getNodeCount()
Get the required node count |
java.util.Set<MoabNode> |
getNodeList()
Get the required node list as a Set of MoabNode Objects |
java.lang.String |
getOS()
Get the required Operating System |
Task |
getTask()
Get the required Task associated with the reservation |
int |
getTaskCount()
Get the required task count |
java.lang.String |
nodeListToString()
Creates a human-readable form of the nodeList variable |
void |
setArchitecture(java.lang.String architecture)
Set the required architecture |
void |
setFeatureList(java.lang.String featureList)
Set the required feature list |
void |
setFeatureMode(java.lang.String featureMode)
Set the required feature mode |
void |
setNetwork(java.lang.String network)
Set the required network |
void |
setNodeCount(int nodeCount)
Set the required node count |
void |
setNodeList(java.util.Set<MoabNode> nodeList)
Set the required node list as a Set of MoabNode Objects |
void |
setNodeListFromStr(java.lang.String nodeStr)
Set required node list from a comma delimited string |
void |
setOS(java.lang.String os)
Set the required Operating System |
void |
setTask(Task task)
Sets the task definition associated with the reservation. |
void |
setTaskCount(int taskCount)
Set the required task count |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReservationRequirements()
Method Detail |
---|
public java.lang.String nodeListToString()
Creates a human-readable form of the nodeList variable
public void setNodeListFromStr(java.lang.String nodeStr)
nodeStr
- Comma delimited string representing nodespublic java.lang.String getArchitecture()
public void setArchitecture(java.lang.String architecture)
architecture
- the required architecturepublic java.lang.String getFeatureList()
public void setFeatureList(java.lang.String featureList)
featureList
- the required feature listpublic java.lang.String getFeatureMode()
public void setFeatureMode(java.lang.String featureMode)
featureMode
- the required feature modepublic java.lang.String getNetwork()
public void setNetwork(java.lang.String network)
network
- the required networkpublic java.lang.String getOS()
public void setOS(java.lang.String os)
os
- the required Operating Systempublic int getNodeCount()
public void setNodeCount(int nodeCount)
nodeCount
- the required node countpublic java.util.Set<MoabNode> getNodeList()
public void setNodeList(java.util.Set<MoabNode> nodeList)
nodeList
- the required node list as a Set of MoabNode Objectspublic int getTaskCount()
public void setTaskCount(int taskCount)
taskCount
- the required task countpublic Task getTask()
public void setTask(Task task)
Sets the task definition associated with the reservation.
Can be null.
task
- the required Task associated with the reservationpublic int compareTo(ReservationRequirements o)
compareTo
in interface java.lang.Comparable<ReservationRequirements>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |