public class SinkDataViewer extends AbstractSink
DataEntry
-types
in a chart-diagram.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_AUTO_ADJUST
Determines whether the auto-adjust-feature is enabled by default ("true"
or "false").
|
static java.lang.String |
CONFIG_CONTENT_CLASS
Specifies the content class.
|
static java.lang.String |
CONFIG_MAX_VALUE
Sets the upper border-value for signal- and value-display.
|
static java.lang.String |
CONFIG_MIN_VALUE
Sets the lower border-value for signal- and value-display.
|
static java.lang.String |
CONFIG_NUMBER_OF_CHANNELS
Specifies the number of channels, incoming data will contain.
|
static java.lang.String |
CONFIG_SAMPLE_RATE
Specifies the frequency with which incoming data will be sent.
|
static java.lang.String |
CONFIG_STYLE
Specifies the "design" of the
DataViewer . |
static java.lang.String |
CONFIG_TIME_TO_DISPLAY
Sets the default time to display on canvas (in ms).
|
static int |
EVENT |
static int |
SIGNAL |
static int |
VALUE |
Constructor and Description |
---|
SinkDataViewer(LifeCycleManager manager,
java.util.HashMap<java.lang.String,java.lang.String> configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Performs custom configuration-tasks (e.g. creating connections to
databases, etc.).
|
DataDescription[] |
getInputDescription()
Returns a
DataDescription describing the data, the Sink is able
to process. |
protected void |
measure()
Called to indicate the component to start measuring, that is sending,
respectively processing data, that is valid for the studie's results.
|
protected void |
processData(DataEntry entry)
Passes a
DataEntry to the AbstractSink , which needs to be
processed. |
protected void |
stop()
Performs custom stopping-tasks (e.g. releasing connections etc).
|
protected void |
train()
Indicates that the System is now in
State.TRAINING . |
getDescriptionsForIncomingData, getSinkConnector, initConnector, receiveData, stopComponent, stopReceiving
configureComponent, disableMeasuring, enableMeasuring, getLifeCycleManager, getState, isReadyToMeasure, measureComponent, trainComponent
public static final java.lang.String CONFIG_CONTENT_CLASS
public static final java.lang.String CONFIG_NUMBER_OF_CHANNELS
public static final java.lang.String CONFIG_SAMPLE_RATE
public static final java.lang.String CONFIG_STYLE
DataViewer
. The property can
contain the following values:
The values can be combined with a logical or in the following manner:
cfgDataViewer.put(SinkDataViewer.CONFIG_STYLE,
Integer.toString(SinkDataViewer.SIGNAL | SinkDataViewer.EVENT | SinkDataViewer.VALUE));
[mandatory]public static final java.lang.String CONFIG_AUTO_ADJUST
public static final java.lang.String CONFIG_MIN_VALUE
public static final java.lang.String CONFIG_MAX_VALUE
public static final java.lang.String CONFIG_TIME_TO_DISPLAY
public static final int SIGNAL
DataViewer#SIGNAL}
,
Constant Field Valuespublic static final int EVENT
DataViewer#EVENT}
,
Constant Field Valuespublic static final int VALUE
DataViewer#VALUE}
,
Constant Field Valuespublic SinkDataViewer(LifeCycleManager manager, java.util.HashMap<java.lang.String,java.lang.String> configuration) throws InstantiationException
InstantiationException
public DataDescription[] getInputDescription()
Sink
DataDescription
describing the data, the Sink
is able
to process.DataDescription
describing the data, the Sink
is able to
process.protected void configure()
SystemComponent
State.CONFIG
.configure
in class SystemComponent
protected void train()
SystemComponent
State.TRAINING
.SystemComponent
s are supposed to start producing data as soon as
they enter this state, for a lot of data is timed relative to the entry
of State.TRAINING
. The produced data does not have to be valid,
though it should be reasonable to enable SystemComponent
s
following in the dispatching-chain to train themselves to the form of
incoming data.train
in class SystemComponent
protected void processData(DataEntry entry)
AbstractSink
DataEntry
to the AbstractSink
, which needs to be
processed.processData
in class AbstractSink
entry
- DataEntry
to be processed.protected void measure()
SystemComponent
State.MEASURING
, which follows the
State.TRAINING
.measure
in class SystemComponent
protected void stop()
SystemComponent
SystemComponent
's
life-cycle.stop
in class SystemComponent