public class DataChannelImplCmsg extends DataChannelAdapter
Modifier and Type | Class and Description |
---|---|
(package private) class |
DataChannelImplCmsg.ReceiveMsgCallback
This class defines the callback to be run when a message matching the subscription arrives.
|
DataChannelAdapter.ThreadState
availableSequences, bAddrList, buffersPerSec, byteOrder, channelState, dataTransport, emu, endCallback, errorMsg, eventsPerBuffer, gotEndCmd, gotResetCmd, id, ignoreDataErrors, input, inputRingItemCount, ipAddrList, isFifo, logger, module, name, nanoSecPerBuf, nextEvent, nextSequences, outputChannelCount, outputChannelFill, outputIndex, outputModuleInternalRingCount, outputRingCount, outputRingItemCount, prescale, prestartCallback, regulateBufferRate, ringBufferIn, ringBuffersOut, ringIndex, sequenceBarriers, sequences, singleEventOut, totalRingCapacity
Constructor and Description |
---|
DataChannelImplCmsg(java.lang.String name,
DataTransportImplCmsg transport,
java.util.Map<java.lang.String,java.lang.String> attributeMap,
boolean input,
Emu emu,
EmuModule module,
int outputIndex)
Constructor to create a new DataChannelImplCmsg instance.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
This method implements the END transition of the CODA run control state machine.
|
int |
getInputLevel()
Get the relative fill level (0-100) of the ring of this input channel.
|
TransportType |
getTransportType()
Get the type of transport this channel implements.
|
void |
go()
This method implements the GO transition of the CODA run control state machine.
|
void |
pause()
This method implements the PAUSE transition of the CODA run control state machine.
|
void |
reset()
This method implements the RESET transition of the CODA run control state machine.
|
getDataTransport, getEndCallback, getError, getID, getModule, getNextOutputRingItem, getNextSequence, getOutputLevel, getOutputRingCount, getPrescale, getPrestartCallback, getRecordId, getRingBufferIn, getRingBuffersOut, gotoNextRingItem, isInput, name, prestart, registerEndCallback, registerPrestartCallback, regulateOutputBufferRate, releaseCurrentAndGoToNextOutputRingItem, releaseOutputRingItem, sequentialReleaseOutputRingItem, setDestinationBaList, setDestinationIpList, setNextEventAndRing, setRecordId, setupInputRingBuffers, setupOutputRingBuffers, state
download
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
download
DataChannelImplCmsg(java.lang.String name, DataTransportImplCmsg transport, java.util.Map<java.lang.String,java.lang.String> attributeMap, boolean input, Emu emu, EmuModule module, int outputIndex) throws DataTransportException
DataTransportImplCmsg.createChannel(String, Map, boolean, Emu, EmuModule, int)
which is only used during PRESTART in the EmuModuleFactory.name
- the name of this channeltransport
- the DataTransport object that this channel belongs toattributeMap
- the hashmap of config file attributes for this channelinput
- true if this is an input data channel, otherwise falseemu
- emu this channel belongs tomodule
- module this channel belongs tooutputIndex
- order in which module's events will be sent to this
output channel (0 for first output channel, 1 for next, etc.).DataTransportException
- - unable to create buffers or socket.public TransportType getTransportType()
getTransportType
in interface DataChannel
getTransportType
in class DataChannelAdapter
public int getInputLevel()
getInputLevel
in interface DataChannel
getInputLevel
in class DataChannelAdapter
public void go()
go
in interface CODAStateMachine
go
in class CODAStateMachineAdapter
public void pause()
pause
in interface CODAStateMachine
pause
in class CODAStateMachineAdapter
public void end()
end
in interface CODAStateMachine
end
in class CODAStateMachineAdapter
public void reset()
reset
in interface CODAStateMachine
reset
in class CODAStateMachineAdapter