|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.internal.AbstractDataComponent
de.cau.cs.kieler.sim.kiem.JSONObjectDataComponent
de.cau.cs.kieler.sim.validator.OutputDataComponent
public class OutputDataComponent
Field Summary |
---|
Fields inherited from class de.cau.cs.kieler.sim.kiem.internal.AbstractDataComponent |
---|
MASTER_CMD_MACROSTEP, MASTER_CMD_PAUSE, MASTER_CMD_RUN, MASTER_CMD_STEP, MASTER_CMD_STEPBACK, MASTER_CMD_STOP |
Constructor Summary | |
---|---|
OutputDataComponent()
|
Method Summary | |
---|---|
void |
initialize()
Initialize. |
boolean |
isDeltaObserver()
Checks if component is a delta observer. |
boolean |
isObserver()
To check whether the DataComponent is an observer. |
boolean |
isProducer()
To check whether the DataComponent is a producer. |
void |
notifyEvent(KiemEvent event)
This is the basic notify method that is called by KIEM whenever an event occurs for which this DataComponent is registered (see AbstractDataComponent.provideEventOfInterest() ). |
KiemEvent |
provideEventOfInterest()
Return a KiemEvent type (integer value) that represents a number of events this component wants to listen to. A KiemEvent can be a combination of several events. |
KiemProperty[] |
provideProperties()
Provide properties. |
JSONObject |
step(JSONObject jSONObject)
Step method for a DataObserver and a DataPrroducer. |
void |
wrapup()
Wrap-up. |
Methods inherited from class de.cau.cs.kieler.sim.kiem.JSONObjectDataComponent |
---|
getInitialVariables, provideFilterKeysJSON, provideInitialVariables, setInitialVariables |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputDataComponent()
Method Detail |
---|
public void initialize() throws KiemInitializationException
IDataComponent
KiemInitializationException
.
initialize
in interface IDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic KiemProperty[] provideProperties()
provideProperties
in class AbstractDataComponent
public boolean isObserver()
IDataComponent
isObserver
in interface IDataComponent
public boolean isProducer()
IDataComponent
isProducer
in interface IDataComponent
public void wrapup() throws KiemInitializationException
IDataComponent
KiemInitializationException
.
wrapup
in interface IDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic JSONObject step(JSONObject jSONObject) throws KiemExecutionException
IJSONObjectDataComponent
KiemExecutionException
that is then catched by the execution manager an brought to
the user's attention.
step
in interface IJSONObjectDataComponent
jSONObject
- the concrete JSONObject of input data (if observer)
KiemExecutionException
- a KiemExecutionExceptionpublic boolean isDeltaObserver()
AbstractDataComponent
isDeltaObserver
in class AbstractDataComponent
public KiemEvent provideEventOfInterest()
AbstractDataComponent
provideEventOfInterest
in class AbstractDataComponent
public void notifyEvent(KiemEvent event)
AbstractDataComponent
AbstractDataComponent.provideEventOfInterest()
).
notifyEvent
in class AbstractDataComponent
event
- the KiemEvent with additional attached information, depending on the specific
event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |