public class DataTransportImplCmsg extends DataTransportAdapter
attr, connected, emu, errorMsg, isServer, name, transportClass, transportState| Constructor and Description |
|---|
DataTransportImplCmsg(java.lang.String pname,
java.util.Map<java.lang.String,java.lang.String> attrib,
Emu emu)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DataChannel |
createChannel(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> attributeMap,
boolean isInput,
Emu emu,
EmuModule module,
int outputIndex)
This method creates a DataChannel object.
|
void |
end()
This method implements the END transition of the CODA run control state machine.
|
org.jlab.coda.cMsg.cMsg |
getCmsgConnection()
Get the cmsg connection object.
|
void |
pause()
This method implements the PAUSE transition of the CODA run control state machine.
|
void |
prestart()
This method implements the PRESTART transition of the CODA run control state machine.
|
void |
reset()
This method implements the RESET transition of the CODA run control state machine.
|
getAttr, getError, getIntAttr, getTransportClass, isConnected, isServer, name, setAttr, setConnected, setName, statedownload, getEndCallback, getPrestartCallback, go, registerEndCallback, registerPrestartCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdownload, getEndCallback, getPrestartCallback, go, registerEndCallback, registerPrestartCallbackpublic DataTransportImplCmsg(java.lang.String pname,
java.util.Map<java.lang.String,java.lang.String> attrib,
Emu emu)
throws DataNotFoundException
pname - name of transportattrib - transport's attribute map from config fileemu - emu object this transport belongs toDataNotFoundException - when udl not given or cannot connect to cmsg serverpublic org.jlab.coda.cMsg.cMsg getCmsgConnection()
public DataChannel createChannel(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> attributeMap, boolean isInput, Emu emu, EmuModule module, int outputIndex) throws DataTransportException
name - name of DataChannelattributeMap - hashmap of attributes taken from XML config fileisInput - true if this channel puts data into the Emu, else falseemu - Emu owning this channelmodule - module creating this channeloutputIndex - order in which module's events will be sent to this
output channel (0 for first output channel, 1 for next, etc.).DataTransportException - if transport problempublic void reset()
reset in interface CODAStateMachinereset in class DataTransportAdapterpublic void prestart()
throws CmdExecException
prestart in interface CODAStateMachineprestart in class CODAStateMachineAdapterCmdExecException - if error during command execution.public void pause()
pause in interface CODAStateMachinepause in class CODAStateMachineAdapterpublic void end()
end in interface CODAStateMachineend in class CODAStateMachineAdapter