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, state
download, getEndCallback, getPrestartCallback, go, registerEndCallback, registerPrestartCallback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
download, getEndCallback, getPrestartCallback, go, registerEndCallback, registerPrestartCallback
public 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 transportmodule
- 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 CODAStateMachine
reset
in class DataTransportAdapter
public void prestart() throws CmdExecException
prestart
in interface CODAStateMachine
prestart
in class CODAStateMachineAdapter
CmdExecException
- if error during command execution.public void pause()
pause
in interface CODAStateMachine
pause
in class CODAStateMachineAdapter
public void end()
end
in interface CODAStateMachine
end
in class CODAStateMachineAdapter