public class ArrivalProcessAssembly extends BasicAssembly
Simple example of subclassing BasicAssembly and running an ArrivalProcess in verbose mode with a SimplePropertyDumper.
In this form, the parameters are set in main().
designPointStats, hookupsCalled, LOGGER, propertyChangeListener, propertyChangeSupport, replicationData, replicationStats, simEntity, stopped
Constructor and Description |
---|
ArrivalProcessAssembly()
Instantiate the ArrivalProcess in the simEntity array.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createPropertyChangeListeners()
Optional method.
|
protected void |
createReplicationStats()
This hook method allows sub-classes to add instrumentation that
is accumulated during a replication.
|
protected void |
createSimEntities()
Template method for creating the SimEntities in the model.
|
protected void |
hookupPropertyChangeListeners()
Have the SimplePropertyDumper listen to the ArrivalProcess.
|
void |
hookupReplicationListeners()
Hookup the stats object - this doesn't mean much, but illustrates how.
|
void |
hookupSimEventListeners()
Does nothing since there are no SimEventListeners
|
static void |
main(java.lang.String[] args) |
createDesignPointStats, createObjects, getDesignPointID, getDesignPointStats, getIDforReplicationStateName, getNumberReplications, getReplicationData, getReplicationReport, getReplicationStat, getReplicationStats, getSimEntities, getStopTime, getSummaryReport, handleSimEvent, hookupDesignPointListeners, init, isPrintReplicationReports, isPrintSummaryReport, isReallyVerbose, isSaveReplicationData, isSingleStep, isStopped, isVerbose, performHookups, processSimEvent, replicationDidFinish, reset, run, saveReplicationStats, scheduleDidReset, scheduleWillReset, setDesignPointID, setNumberReplications, setPrintReplicationReports, setPrintSummaryReport, setReallyVerbose, setSaveReplicationData, setSingleStep, setStopTime, setVerbose, simulationDidFinish, simulationWillBeStopped, stop
public ArrivalProcessAssembly()
Instantiate the ArrivalProcess in the simEntity array.
Instantiate a SimplePropertyDumper in the propertyChangeListener array.
protected void createReplicationStats()
BasicAssembly
replicationsStats
. By doing this, your stats object
here will be summarized in the output data for each design point (by default).
Any object you create here should be hooked up (i.e. registered to listen
for the approprate state changes) in the corresponding hook method
hookupReplicationListeners()
Thid method is called from createObjects()
after
createSimEntities()
and before createDesignPointStats()
createReplicationStats
in class BasicAssembly
protected void createPropertyChangeListeners()
BasicAssembly
createObjects()
createPropertyChangeListeners
in class BasicAssembly
protected void hookupPropertyChangeListeners()
hookupPropertyChangeListeners
in class BasicAssembly
public void hookupReplicationListeners()
hookupReplicationListeners
in class BasicAssembly
public void hookupSimEventListeners()
hookupSimEventListeners
in class BasicAssembly
protected void createSimEntities()
BasicAssembly
createSimEntities
in class BasicAssembly
public static void main(java.lang.String[] args)
args
- the command line arguments