Class RunInfo
java.lang.Object
repast.simphony.engine.environment.RunInfo
A class that contains information on a simulation run.
- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Jerry Vos
-
Constructor Summary
ConstructorDescriptionCreates this run info with the specified model name, batch run number number, and run number and default value of false for isBatch.Creates this run info with the specified model name, batch run number number, run number, and whether or not this is a run in a true batch run. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares run info objects based on their publicly accessible attributes.int
Retrieves the current batch numberRetrieves the name of the rootContext the logging is running forint
Retrieves the current run number.int
hashCode()
Returns a hashcode of the rootContext's properties.boolean
isBatch()
void
setBatchNumber
(int batchNumber) void
setRunNumber
(int runNumber)
-
Constructor Details
-
RunInfo
Creates this run info with the specified model name, batch run number number, and run number and default value of false for isBatch.- Parameters:
modelName
- the name of the modelbatchNumber
- the batch number of the simulationrunNumber
- the run number of the simulation
-
RunInfo
Creates this run info with the specified model name, batch run number number, run number, and whether or not this is a run in a true batch run.- Parameters:
modelName
- the name of the modelbatchNumber
- the batch number of the simulationrunNumber
- the run number of the simulation
-
RunInfo
-
-
Method Details
-
setRunNumber
public void setRunNumber(int runNumber) -
setBatchNumber
public void setBatchNumber(int batchNumber) -
getModelName
Retrieves the name of the rootContext the logging is running for- Returns:
- the name of the rootContext the logging is running for
-
getBatchNumber
public int getBatchNumber()Retrieves the current batch number- Returns:
- the current batch number
-
isBatch
public boolean isBatch()- Returns:
- true if the current run is one of series of runs in a "true" batch run.
-
getRunNumber
public int getRunNumber()Retrieves the current run number. During a batch run the batch number would be the number associated with a set of batch runs, while the run number is the actual run in a set of batch runs.Batch number (1): ->run(1) ->run(2) Batch Run (2): ->run(2) ->run(3) ...
- Returns:
- the current sub-run number
-
equals
Compares run info objects based on their publicly accessible attributes. -
hashCode
public int hashCode()Returns a hashcode of the rootContext's properties.
-