Class DataChannelImplEmu
java.lang.Object
org.jlab.coda.emu.support.codaComponent.CODAStateMachineAdapter
org.jlab.coda.emu.support.transport.DataChannelAdapter
org.jlab.coda.emu.support.transport.DataChannelImplEmu
- All Implemented Interfaces:
CODAStateMachine,StatedObject,DataChannel
This class implement a data channel which
gets-data-from/sends-data-to an Emu domain client/server.
-
Method Summary
Modifier and TypeMethodDescriptionvoidend()This method implements the END transition of the CODA run control state machine.intGet the relative fill level (0-100) of the ring of this input channel.Get the type of transport this channel implements.voidgo()This method implements the GO transition of the CODA run control state machine.voidpause()This method implements the PAUSE 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.support.transport.DataChannelAdapter
getDataTransport, getEndCallback, getError, getID, getModule, getNextSequence, getOutputLevel, getOutputRingCount, getPrescale, getPrestartCallback, getRecordId, getRingBufferIn, getRingBuffersOut, isInput, name, registerEndCallback, registerPrestartCallback, regulateOutputBufferRate, setDestinationBaList, setDestinationIpList, setRecordId, stateMethods inherited from class org.jlab.coda.emu.support.codaComponent.CODAStateMachineAdapter
downloadMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jlab.coda.emu.support.codaComponent.CODAStateMachine
download
-
Method Details
-
getTransportType
Get the type of transport this channel implements.- Specified by:
getTransportTypein interfaceDataChannel- Specified by:
getTransportTypein classDataChannelAdapter- Returns:
- type of transport this channel implements.
-
getInputLevel
public int getInputLevel()Get the relative fill level (0-100) of the ring of this input channel.- Specified by:
getInputLevelin interfaceDataChannel- Overrides:
getInputLevelin classDataChannelAdapter- Returns:
- relative fill level (0-100) of all the ring.
-
prestart
This method implements the PRESTART transition of the CODA run control state machine.- Specified by:
prestartin interfaceCODAStateMachine- Overrides:
prestartin classDataChannelAdapter- Throws:
CmdExecException- if error during command execution.
-
go
public void go()This method implements the GO transition of the CODA run control state machine.- Specified by:
goin interfaceCODAStateMachine- Overrides:
goin classCODAStateMachineAdapter
-
pause
public void pause()This method implements the PAUSE transition of the CODA run control state machine.- Specified by:
pausein interfaceCODAStateMachine- Overrides:
pausein classCODAStateMachineAdapter
-
end
public void end()This method implements the END transition of the CODA run control state machine.. Formerly this code was the close() method.- Specified by:
endin interfaceCODAStateMachine- Overrides:
endin classCODAStateMachineAdapter
-
reset
public void reset()This method implements the RESET transition of the CODA run control state machine. Reset this channel by interrupting the data sending threads and closing ET system.- Specified by:
resetin interfaceCODAStateMachine- Overrides:
resetin classCODAStateMachineAdapter
-