|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.jobs.GenericResource
public class GenericResource
This object represents a moab generic resource. For each resource, there are three parts: The Resorce Type, the Resource Quantity, and the Consumption Timeframe (the last part is optional) For more information: http://www.clusterresources.com/products/mwm/docs/13.3rmextensions.shtml#gres
| Constructor Summary | |
|---|---|
GenericResource()
|
|
GenericResource(java.lang.String type,
int quantity,
int timeframe)
Generic Resources constructors |
|
| Method Summary | |
|---|---|
int |
compareTo(GenericResource genericResource)
|
boolean |
equals(java.lang.Object other)
|
int |
getQuantity()
|
int |
getTimeframe()
|
java.lang.String |
getType()
|
void |
setQuantity(int quantity)
|
void |
setTimeframe(int timeframe)
|
void |
setType(java.lang.String type)
|
java.lang.String |
toCommand()
Return a moab-readable string representation of the this dependency |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericResource()
public GenericResource(java.lang.String type,
int quantity,
int timeframe)
type - quantity - timeframe - | Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toCommand()
public int compareTo(GenericResource genericResource)
compareTo in interface java.lang.Comparable<GenericResource>public java.lang.String getType()
public void setType(java.lang.String type)
type - the type to setpublic int getQuantity()
public void setQuantity(int quantity)
quantity - the quantity to setpublic int getTimeframe()
public void setTimeframe(int timeframe)
timeframe - the timeframe to setpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||