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, stateend, getEndCallback, getPrestartCallback, go, pause, prestart, registerEndCallback, registerPrestartCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitend, getEndCallback, getPrestartCallback, go, pause, prestart, registerEndCallback, registerPrestartCallbackpublic 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 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 CODAStateMachinereset in class DataTransportAdapterpublic void download()
throws CmdExecException
download in interface CODAStateMachinedownload in class CODAStateMachineAdapterCmdExecException - if error during command execution.