public class SimpleServerAssembly extends BasicAssembly
designPointStats, hookupsCalled, LOGGER, propertyChangeListener, propertyChangeSupport, replicationData, replicationStats, simEntity, stopped
Constructor and Description |
---|
SimpleServerAssembly()
Instantiate SimEntities and Stats objects in arrays (defined in
BasicAssembly superclass).
|
Modifier and Type | Method and Description |
---|---|
protected void |
createSimEntities()
Template method for creating the SimEntities in the model.
|
void |
hookupReplicationListeners()
Hook up the replication stats objects - these will be computing means for
each run, and those means will be the inputs to the designPoint stats
objects.
|
void |
hookupSimEventListeners()
All SimEventListening is connected here.
|
static void |
main(java.lang.String[] args)
Note: Normally most of this would not be done, it is just for testing and
illustrative purposes.
|
createDesignPointStats, createObjects, createPropertyChangeListeners, createReplicationStats, getDesignPointID, getDesignPointStats, getIDforReplicationStateName, getNumberReplications, getReplicationData, getReplicationReport, getReplicationStat, getReplicationStats, getSimEntities, getStopTime, getSummaryReport, handleSimEvent, hookupDesignPointListeners, hookupPropertyChangeListeners, 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 SimpleServerAssembly()
Instantiate SimEntities and Stats objects in arrays (defined in BasicAssembly superclass). Perform hookups - this must be done here because in the superclass constructor it would happen before the objects were instantiated.
In this form, all the parameters for the Assembly object are hard wired in the constructor. This is less flexible for reuse, but makes it easier to instantiate one and run it.
protected void createSimEntities()
BasicAssembly
createSimEntities
in class BasicAssembly
public void hookupSimEventListeners()
hookupSimEventListeners
in class BasicAssembly
public void hookupReplicationListeners()
hookupReplicationListeners
in class BasicAssembly
public static void main(java.lang.String[] args)
args
- command line arguments