public interface EmuModule extends StatedObject, CODAStateMachine
Modifier and Type | Method and Description |
---|---|
void |
addInputChannels(java.util.ArrayList<DataChannel> input_channels)
Add the given input channels to this EmuModule object.
|
void |
addOutputChannels(java.util.ArrayList<DataChannel> output_channels)
Add the given output channels to this EmuModule object.
|
void |
adjustStatistics(long eventsAdded,
long wordsAdded)
Adjust the event count and word count reported by this module to run control
by added the given numbers.
|
void |
clearChannels()
Remove all channels from this EmuModule object.
|
java.lang.String |
getAttr(java.lang.String name)
Get the named attribute from the config file of this module.
|
int |
getEventProducingThreadCount()
Get the number of threads which produce events to be placed in output channels.
|
java.util.ArrayList<DataChannel> |
getInputChannels()
Get the input channels of this EmuModule object.
|
int[] |
getInputLevels()
Get array containing the relative fill level (0-100) of each input channel's ring.
|
java.lang.String[] |
getInputNames()
Get the names of the input channels of this EmuModule object.
|
int |
getIntAttr(java.lang.String name)
Get the named attribute, as an integer, from the config file of this module.
|
int |
getInternalRingCount()
Get the number of items this EmuModule object has in its internal rings.
|
java.util.ArrayList<DataChannel> |
getOutputChannels()
Get the output channels of this EmuModule object.
|
int[] |
getOutputLevels()
Get array containing the relative fill level (0-100) of each output channel's ring(s).
|
java.lang.String[] |
getOutputNames()
Get the names of the output channels of this EmuModule object.
|
java.nio.ByteOrder |
getOutputOrder()
Get the byte order of the module's output.
|
java.lang.Object[] |
getStatistics()
Get the output statistics of this EmuModule object.
|
java.lang.String |
name()
Get the name of the module
|
boolean |
representsEmuStatistics()
If an EMU has more than one module, which module's statistics represent the EMU
as a whole needs to be determined.
|
getError, state
download, end, getEndCallback, getPrestartCallback, go, pause, prestart, registerEndCallback, registerPrestartCallback, reset
java.lang.String name()
java.lang.String getAttr(java.lang.String name) throws DataNotFoundException
name
- name of the module's config file attribute.DataNotFoundException
- if attribute not found.int getIntAttr(java.lang.String name) throws DataNotFoundException, java.lang.NumberFormatException
name
- name of the module's config file attribute.DataNotFoundException
- if attribute not found.java.lang.NumberFormatException
- if attribute cannot be interpreted as an integervoid addInputChannels(java.util.ArrayList<DataChannel> input_channels)
input_channels
- the input channels to add to this EmuModule objectvoid addOutputChannels(java.util.ArrayList<DataChannel> output_channels)
output_channels
- the output channels to add to this EmuModule objectjava.util.ArrayList<DataChannel> getInputChannels()
java.util.ArrayList<DataChannel> getOutputChannels()
int getInternalRingCount()
java.lang.String[] getInputNames()
java.lang.String[] getOutputNames()
int[] getInputLevels()
int[] getOutputLevels()
void clearChannels()
java.lang.Object[] getStatistics()
Get the output statistics of this EmuModule object. The output statistics consists of an array of 2 Longs, 2 Floats, 4 Integers, and 1 int array:
event count (Long)
word count (Long)
event rate in Hz (Float
data rate in kBytes/sec (Float)
max event size in bytes (Integer) if module is an EB
min event size in bytes (Integer) if module is an EB
avg event size in bytes (Integer) if module is an EB
suggested value for chunk*EtBufSize (Integer) if have ET output channel
if EB and switched on, histogram of time to build 1 event in nanoseconds (int array)
void adjustStatistics(long eventsAdded, long wordsAdded)
eventsAdded
- number of events to be added the event countwordsAdded
- number of words to be added the word countboolean representsEmuStatistics()
true
if this module's statistics represents the EMU, else false
.int getEventProducingThreadCount()
java.nio.ByteOrder getOutputOrder()