|
||||||||||
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.kivi.StateMachineKiViDataComponent
public abstract class StateMachineKiViDataComponent
A data component that observes the activity of syncchart states during simulation.
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 | |
---|---|
StateMachineKiViDataComponent()
|
Method Summary | |
---|---|
protected abstract org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor |
getActiveEditor()
|
void |
initialize()
Initialize. |
boolean |
isHistoryObserver()
Flags that this component can handle past, already computed history values. |
boolean |
isObserver()
To check whether the DataComponent is an observer. |
boolean |
isProducer()
To check whether the DataComponent is a producer. |
KiemProperty[] |
provideProperties()
Provide properties for this component. |
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 StateMachineKiViDataComponent()
Method Detail |
---|
public void initialize() throws KiemInitializationException
KiemInitializationException
.
initialize
in interface IDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic void wrapup() throws KiemInitializationException
KiemInitializationException
.
Synchronized to avoid wrapup() finishing while step() still is running. This would lead to
bad highlighting order: wrapup() undos all highlights, then step() executes a couple of new
highlights that will remain active until the next simulation starts.
wrapup
in interface IDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic boolean isProducer()
isProducer
in interface IDataComponent
public boolean isObserver()
isObserver
in interface IDataComponent
public boolean isHistoryObserver()
AbstractDataComponent
isHistoryObserver
in class AbstractDataComponent
public KiemProperty[] provideProperties()
provideProperties
in class AbstractDataComponent
public JSONObject step(JSONObject jSONObject) throws KiemExecutionException
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 KiemExecutionExceptionprotected abstract org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor getActiveEditor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |