public class DataTransportImplEt extends DataTransportAdapter
attr, connected, errorMsg, isServer, name, transportClass, transportState
Constructor and Description |
---|
DataTransportImplEt(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 |
download()
This method implements the DOWNLOAD transition of the CODA run control state machine.
|
int |
getEventsInGroup()
Gets the number of events per group in the opened ET system.
|
org.jlab.coda.et.system.SystemCreate |
getLocalEtSystem()
Get the locally created ET system object, if any.
|
org.jlab.coda.et.EtSystemOpenConfig |
getOpenConfig()
Gets the configuration for opening the ET system.
|
org.jlab.coda.et.system.SystemConfig |
getSystemConfig()
Get the configuration for creating the ET system.
|
void |
reset()
This method implements the RESET transition of the CODA run control state machine.
|
boolean |
tryToCreateET()
Get whether the ET system should be created by the EMU if it does not exist.
|
getAttr, getError, getIntAttr, getTransportClass, isConnected, isServer, name, setAttr, setConnected, setName, state
end, getEndCallback, getPrestartCallback, go, pause, prestart, registerEndCallback, registerPrestartCallback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
end, getEndCallback, getPrestartCallback, go, pause, prestart, registerEndCallback, registerPrestartCallback
public DataTransportImplEt(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 cannot configure an ET systempublic boolean tryToCreateET()
public org.jlab.coda.et.EtSystemOpenConfig getOpenConfig()
public org.jlab.coda.et.system.SystemConfig getSystemConfig()
public org.jlab.coda.et.system.SystemCreate getLocalEtSystem()
public int getEventsInGroup()
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 CODAStateMachine
reset
in class DataTransportAdapter
public void download() throws CmdExecException
download
in interface CODAStateMachine
download
in class CODAStateMachineAdapter
CmdExecException
- if error during command execution.