|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.inca.depot.persistent.PersistentObject
edu.sdsc.inca.depot.persistent.SeriesConfig
public class SeriesConfig
A SeriesConfig Represents the configuration of a Series as part of a Suite.
Field Summary |
---|
Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
---|
DB_EMPTY_STRING, logger, MAX_DB_LONG_STRING_LENGTH, MAX_DB_STRING_LENGTH |
Constructor Summary | |
---|---|
SeriesConfig()
Default constructor. |
|
SeriesConfig(Suite suite,
Series series)
Full constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares another object to this SeriesConfig for logical equality. |
SeriesConfig |
fromBean(edu.sdsc.inca.dataModel.util.SeriesConfig sc)
Copies information from an Inca schema XmlBean SeriesConfig object so that this object contains equivalent information. |
PersistentObject |
fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean SeriesConfig object so that this object contains equivalent information. |
static SeriesConfig |
generate(java.lang.String resource,
java.lang.String context,
int args)
Returns a phony SeriesConfig with a given resource and context. |
AcceptedOutput |
getAcceptedOutput()
Returns comparison and action information for this SeriesConfig. |
java.lang.String |
getAction()
Gets the editing action associated with this SeriesConfig. |
int |
getActivated()
Returns the version number of the Suite under which this SeriesConfig was most recently activated (i.e., its Series was running); -1 if none. |
int |
getDeactivated()
Returns the version number of the Suite under which this SeriesConfig was most recently deactivated (i.e., its Series was suspended); -1 if none. |
java.lang.Long |
getId()
Retrieve the id -- null if not yet connected to database. |
java.lang.Long |
getLatestComparisonId()
Returns the DB id of the latest ComprisonResult associated with this SeriesConfig; -1 if none. |
java.lang.Long |
getLatestInstanceId()
Returns the DB id of the latest InstanceInfo associated with this SeriesConfig; -1 if none. |
Limits |
getLimits()
Returns the resource limits for this SeriesConfig. |
java.lang.String |
getNickname()
Get the user-supplied SeriesConfig nickname. |
Schedule |
getSchedule()
Returns the execution schedule for this SeriesConfig. |
Series |
getSeries()
Returns the Series associated with this SeriesConfig. |
Suite |
getSuite()
Returns the Suite associated with this SeriesConfig. |
void |
setAcceptedOutput(AcceptedOutput ao)
Sets comparison and action information for this SeriesConfig. |
void |
setAction(java.lang.String action)
Sets the editing action associated with this SeriesConfig. |
void |
setActivated(int version)
Sets the version number of the Suite under which this SeriesConfig was most recently activated (i.e., its Series was running); -1 if none. |
void |
setDeactivated(int version)
Sets the version number of the Suite under which this SeriesConfig was most recently deactivated (i.e., its Series was suspended); -1 if none. |
protected void |
setId(java.lang.Long id)
Set the id. |
void |
setLatestComparisonId(java.lang.Long id)
Sets the DB id of the latest ComparisonResult associated with this SeriesConfig; -1 if none. |
void |
setLatestInstanceId(java.lang.Long id)
Sets the DB id of the latest InstanceInfo associated with this SeriesConfig; -1 if none. |
void |
setLimits(Limits l)
Sets the resource limits for this SeriesConfig. |
void |
setNickname(java.lang.String nickname)
Set the user-supplied SeriesConfig nickname. |
void |
setSchedule(Schedule s)
Sets the execution schedule for this SeriesConfig. |
void |
setSeries(Series s)
Sets the Series associated with this SeriesConfig. |
void |
setSuite(Suite s)
Sets the Suite associated with this SeriesConfig. |
org.apache.xmlbeans.XmlObject |
toBean()
Returns a Inca schema XmlBean SeriesConfig object that contains information equivalent to this object. |
java.lang.String |
toString()
Returns a string representation of this SeriesConfig. |
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
---|
toXml, truncate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SeriesConfig()
public SeriesConfig(Suite suite, Series series)
Method Detail |
---|
public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
fromBean
in class PersistentObject
o
- the XmlBean SeriesConfig object to copy
public SeriesConfig fromBean(edu.sdsc.inca.dataModel.util.SeriesConfig sc)
sc
- the XmlBean SeriesConfig object to copy
public java.lang.Long getId()
protected void setId(java.lang.Long id)
id
- The DB ID.public int getActivated()
public void setActivated(int version)
version
- the activating Suite version numberpublic int getDeactivated()
public void setDeactivated(int version)
version
- the deactivating Suite version numberpublic java.lang.String getNickname()
public void setNickname(java.lang.String nickname)
nickname
- the SeriesConfig nicknamepublic Limits getLimits()
public void setLimits(Limits l)
l
- the resource limitspublic AcceptedOutput getAcceptedOutput()
public void setAcceptedOutput(AcceptedOutput ao)
ao
- the comparison and action informationpublic Schedule getSchedule()
public void setSchedule(Schedule s)
s
- the execution schedulepublic Suite getSuite()
public void setSuite(Suite s)
s
- the associated Suitepublic Series getSeries()
public void setSeries(Series s)
s
- the associated Seriespublic java.lang.Long getLatestInstanceId()
public void setLatestInstanceId(java.lang.Long id)
id
- the latest instance DB idpublic java.lang.Long getLatestComparisonId()
public void setLatestComparisonId(java.lang.Long id)
id
- the latest comparison DB idpublic java.lang.String getAction()
public void setAction(java.lang.String action)
action
- the associated editing actionpublic org.apache.xmlbeans.XmlObject toBean()
toBean
in class PersistentObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare
public static SeriesConfig generate(java.lang.String resource, java.lang.String context, int args)
resource
- the series resourcecontext
- the series contextargs
- the number of phony arguments to generate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |