edu.sdsc.inca.depot.persistent
Class Limits
java.lang.Object
edu.sdsc.inca.depot.persistent.PersistentObject
edu.sdsc.inca.depot.persistent.Limits
public class Limits
- extends PersistentObject
Basic Limits class; matches the idea of Limits in the xsd for inca.
Constructor Summary |
Limits()
|
Limits(int memory,
int cpuTime,
int wallClockTime)
This constructor mainly helps out with testing; it won't be used in
coding, because we will be using the set function. |
Method Summary |
Limits |
fromBean(edu.sdsc.inca.dataModel.util.Limits l)
Copies information from an Inca schema XmlBean Limits object so that this
object contains equivalent information. |
PersistentObject |
fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean Limits object so that this
object contains equivalent information. |
java.lang.Float |
getCpuTime()
|
java.lang.Float |
getMemory()
|
java.lang.Float |
getWallClockTime()
|
void |
setCpuTime(java.lang.Float cpuTime)
|
void |
setMemory(java.lang.Float memory)
|
void |
setWallClockTime(java.lang.Float wallClockTime)
|
org.apache.xmlbeans.XmlObject |
toBean()
Returns a Inca schema XmlBean Limits object that contains information
equivalent to this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Limits
public Limits()
Limits
public Limits(int memory,
int cpuTime,
int wallClockTime)
- This constructor mainly helps out with testing; it won't be used in
coding, because we will be using the set function.
- Parameters:
memory
- the limit on memory, in MBcpuTime
- the limit on CPU time, in secondswallClockTime
- the limit on wall time, in seconds
fromBean
public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
- Copies information from an Inca schema XmlBean Limits object so that this
object contains equivalent information.
- Specified by:
fromBean
in class PersistentObject
- Parameters:
o
- the XmlBean Limits object to copy
- Returns:
- this, for convenience
fromBean
public Limits fromBean(edu.sdsc.inca.dataModel.util.Limits l)
- Copies information from an Inca schema XmlBean Limits object so that this
object contains equivalent information.
- Parameters:
l
- the XmlBean Limits object to copy
- Returns:
- this, for convenience
getMemory
public java.lang.Float getMemory()
setMemory
public void setMemory(java.lang.Float memory)
getCpuTime
public java.lang.Float getCpuTime()
setCpuTime
public void setCpuTime(java.lang.Float cpuTime)
getWallClockTime
public java.lang.Float getWallClockTime()
setWallClockTime
public void setWallClockTime(java.lang.Float wallClockTime)
toBean
public org.apache.xmlbeans.XmlObject toBean()
- Returns a Inca schema XmlBean Limits object that contains information
equivalent to this object.
- Specified by:
toBean
in class PersistentObject
- Returns:
- an XmlBean Limits object that contains equivalent information