Package org.jlab.coda.emu.modules
Class TsSimulation
java.lang.Object
org.jlab.coda.emu.modules.ModuleAdapter
org.jlab.coda.emu.modules.TsSimulation
- All Implemented Interfaces:
EmuModule,CODAStateMachine,StatedObject
This class is used when running simulated, emu-based ROCS.
This must be the master ROC in order for synchronization to work properly.
All simulated ROCs need to be the same priority level so that they all
receive the RC commands - END in particular - at the same time.
This module takes no input and has no output. Instead it provides
synchronization through cMsg commands handled by the RC platform's
cMsg server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()This method implements the END transition of the CODA run control state machine.voidgo()This method implements the GO transition of the CODA run control state machine.voidprestart()This method implements the PRESTART transition of the CODA run control state machine.voidreset()This method implements the RESET transition of the CODA run control state machine.Methods inherited from class org.jlab.coda.emu.modules.ModuleAdapter
addInputChannels, addOutputChannels, adjustStatistics, clearChannels, download, getAttr, getEndCallback, getError, getEventProducingThreadCount, getInputChannels, getInputLevels, getInputNames, getIntAttr, getInternalRingCount, getOutputChannels, getOutputLevels, getOutputNames, getOutputOrder, getPrestartCallback, getStatistics, name, pause, registerEndCallback, registerPrestartCallback, representsEmuStatistics, state
-
Constructor Details
-
TsSimulation
Constructor.- Parameters:
name- name of moduleattributeMap- map containing attributes of moduleemu- Emu this module belongs to.
-
-
Method Details
-
go
public void go()This method implements the GO transition of the CODA run control state machine.- Specified by:
goin interfaceCODAStateMachine- Overrides:
goin classModuleAdapter
-
prestart
public void prestart()This method implements the PRESTART transition of the CODA run control state machine.- Specified by:
prestartin interfaceCODAStateMachine- Overrides:
prestartin classModuleAdapter
-
reset
public void reset()This method implements the RESET transition of the CODA run control state machine.- Specified by:
resetin interfaceCODAStateMachine- Overrides:
resetin classModuleAdapter
-
end
This method implements the END transition of the CODA run control state machine.- Specified by:
endin interfaceCODAStateMachine- Overrides:
endin classModuleAdapter- Throws:
CmdExecException- if error during command execution.
-