|
||||||||||
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.synccharts.viewmanagement.StateActivityObserver
public class StateActivityObserver
Field Summary | |
---|---|
static StateActivityObserver |
INSTANCE
FIXME: haf workaround: Singleton pattern to get simple access to the rootEditPart |
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 | |
---|---|
StateActivityObserver()
|
Method Summary | |
---|---|
void |
bringToFront()
This method brings the VM view to the front. |
void |
checkProperties(KiemProperty[] properties)
This method is intended to check if the properties are set correctly. |
EditPart |
getEditPart(String elementURIFragment,
EditPart parent)
|
String |
getElementURIFragment(EditPart editPart)
This method searches recursively for an EditPart using the modelElement URIFragment provided. |
EditPart |
getRootEditPart()
|
void |
initialize()
Initialize. |
boolean |
isDeltaObserver()
Checks if component is a delta observer. |
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 data)
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 de.cau.cs.kieler.sim.kiem.internal.AbstractDataComponent |
---|
finalize, getConfigurationElement, getDataComponentId, getName, getPluginId, getProperties, isHistoryStep, isInvisible, isMacroStepDone, isMaster, isMasterImplementingGUI, isMultiInstantiable, masterCommand, masterGetAimedStepDuration, masterGUI, masterGUIisEnabled, masterIsPaused, masterIsRunning, masterSetAimedStepDuration, masterSetKIEMInstances, notifyEvent, provideEventOfInterest, provideFilterKeys, setConfigurationElemenet, setHistoryStep, setInitializationData, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static StateActivityObserver INSTANCE
Constructor Detail |
---|
public StateActivityObserver()
Method Detail |
---|
public void bringToFront()
public void checkProperties(KiemProperty[] properties) throws KiemPropertyException
AbstractDataComponent
checkProperties
in class AbstractDataComponent
properties
- the properties with the current user settings
KiemPropertyException
- if a property prevents the execution of this DataComponent this error should be
thrownpublic EditPart getEditPart(String elementURIFragment, EditPart parent)
public String getElementURIFragment(EditPart editPart)
elementURIFragment
- the URIFragment of the EObject to
search forparent
- the parent EditPart
public EditPart getRootEditPart()
public void initialize() throws KiemInitializationException
IDataComponent
KiemInitializationException
.
initialize
in interface IDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic boolean isDeltaObserver()
AbstractDataComponent
isDeltaObserver
in class AbstractDataComponent
public boolean isHistoryObserver()
AbstractDataComponent
isHistoryObserver
in class AbstractDataComponent
public boolean isObserver()
IDataComponent
isObserver
in interface IDataComponent
public boolean isProducer()
IDataComponent
isProducer
in interface IDataComponent
public KiemProperty[] provideProperties()
AbstractDataComponent
provideProperties
in class AbstractDataComponent
public JSONObject step(JSONObject data) throws KiemExecutionException
IJSONObjectDataComponent
KiemExecutionException
that is then catched by the execution manager an brought to
the user's attention.
step
in interface IJSONObjectDataComponent
data
- the concrete JSONObject of input data (if observer)
KiemExecutionException
- a KiemExecutionExceptionpublic void wrapup()
IDataComponent
KiemInitializationException
.
wrapup
in interface IDataComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |