|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.mccrory.scott.spumoni.StatsProgram
StatsProgram is a data object for the statistics programs
handled by Spumoni through the StatsCollector class.
It also contains attributes such as the program name, regexp, a list
of required modules, max run time and a Vector of StatsValue objects.
| Constructor Summary | |
StatsProgram()
Basic StatsProgram constructor. |
|
StatsProgram(java.lang.String newXmlFilename,
java.lang.String newProgram,
java.lang.String newRegexp,
java.util.Vector newRequiredModules,
int newMaxRunTime,
StatsValueList newStatsValueList)
A convenience StatsProgram contructor to set all of the data elements at the time of creation. |
|
| Method Summary | |
void |
addStatsValue(StatsValue sv)
Adds the StatsValue object to our StatsValueList |
java.lang.Object |
clone()
We override the clone method here to prevent cloning of our class. |
int |
getMaxRunTime()
Returns the program's maximum run time in seconds. |
java.util.Vector |
getOids()
Returns a vector of all of the OIDs in this StatsProgram |
java.lang.String |
getProgram()
Returns the program's command string. |
java.lang.String |
getRegexp()
Returns the program's regexp string. |
java.util.Vector |
getRequiredModules()
Returns a Vector of the program's required modules. |
StatsValueList |
getStatsValueList()
Returns a StatsValueList of the program's StatsValue objects. |
java.lang.String |
getXmlFilename()
Returns the program's source XML filename. |
void |
setMaxRunTime(int newMaxRunTime)
Sets the program's maximum run time in seconds. |
void |
setProgram(java.lang.String newProgram)
Sets the program's command string. |
void |
setRegexp(java.lang.String newRegexp)
Sets the program's regular expression string. |
void |
setRequiredModules(java.lang.String newRequiredModules)
Sets the program's Vector of required modules from a comma-delimited string. |
void |
setRequiredModules(java.util.Vector newRequiredModules)
Sets the program's Vector of required modules. |
void |
setStatsValues(StatsValueList newStatsValueList)
Sets the program's Vector of StatsValue objects. |
void |
setXmlFilename(java.lang.String newXmlFilename)
Sets the program's source XML filename. |
java.lang.String |
toString()
Returns a formatted String of this object's values |
void |
unsetStatsValues()
Unsets the values in all of the attached StatsValue objects. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StatsProgram()
public StatsProgram(java.lang.String newXmlFilename,
java.lang.String newProgram,
java.lang.String newRegexp,
java.util.Vector newRequiredModules,
int newMaxRunTime,
StatsValueList newStatsValueList)
newXmlFilename - The program's source XML filenamenewProgram - The program's command stringnewRegexp - Regexp stringnewRequiredModules - List of required modulesnewMaxRunTime - Maximum run timenewStatsValueList - List of stats values| Method Detail |
public void addStatsValue(StatsValue sv)
sv - com.mccrory.scott.spumoni.StatsValue
public final java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone method here to prevent cloning of our class.
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - To indicate cloning is not allowedpublic int getMaxRunTime()
public java.lang.String getProgram()
public java.lang.String getRegexp()
public java.util.Vector getRequiredModules()
public StatsValueList getStatsValueList()
public java.util.Vector getOids()
public java.lang.String getXmlFilename()
public void setMaxRunTime(int newMaxRunTime)
newMaxRunTime - intpublic void setProgram(java.lang.String newProgram)
newProgram - java.lang.Stringpublic void setRegexp(java.lang.String newRegexp)
newRegexp - java.lang.Stringpublic void setRequiredModules(java.lang.String newRequiredModules)
newRequiredModules - java.util.Vectorpublic void setRequiredModules(java.util.Vector newRequiredModules)
newRequiredModules - java.util.Vectorpublic void setStatsValues(StatsValueList newStatsValueList)
newStatsValueList - The new StatsValueList we're storingpublic void setXmlFilename(java.lang.String newXmlFilename)
newXmlFilename - The XML filename which defines this objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void unsetStatsValues()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||