|
||||||||||
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.kiem.ui.datacomponent.JSONObjectSimulationDataComponent
de.cau.cs.kieler.synccharts.sim.ptolemy.SyncchartsSimDataComponent
public class SyncchartsSimDataComponent
The class SimpleRailCtrl DataComponent implements a KIELER Execution Manager
DataComponent.
Within its initialize()
method it performs the model2model Xtend
transformation to create a semantically equivalent but executable Ptolemy
model out of the SimpleRailCtrl EMF model instance. It also loads the Ptolemy
model within a PtolemyExecutor and adapts the port and host for connecting to
the model railway simulation engine.
Within its JSONObjectSimulationDataComponent.step(JSONObject)
method it then triggers a step of the
PtolemyExecutor. Because this is done asynchronously the triggering of a
consecutive step may lead to an KiemExecutionError be thrown that was
initially the consequence of the last (async) call to the step method of the
PtolemyExecutor.
Field Summary |
---|
Fields inherited from class de.cau.cs.kieler.sim.kiem.ui.datacomponent.JSONObjectSimulationDataComponent |
---|
activePage, activePageFlag, exception, modelEditor |
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 | |
---|---|
SyncchartsSimDataComponent()
Instantiates a new SimpleRailCtrl DataComponent for the KIELER Execution Manager. |
Method Summary | |
---|---|
boolean |
checkModelValidation(EObject rootEObject)
Check the model validation. |
void |
doModel2ModelTransform(KielerProgressMonitor monitor)
Implementation of model 2 model transformation. |
JSONObject |
doProvideInitialVariables()
Performs the normal provide initial variables method. |
KiemProperty[] |
doProvideProperties()
Do provide an additional property to set the state name. |
JSONObject |
doStep(JSONObject jSONObject)
Implements the real step method for this simulation datacomponent. |
void |
initialize()
Initialize. |
void |
loadAndExecuteModel()
|
URL |
resolveBundelFile(String relativePath)
|
void |
wrapup()
Wrap-up. |
Methods inherited from class de.cau.cs.kieler.sim.kiem.ui.datacomponent.JSONObjectSimulationDataComponent |
---|
bringProblemsViewToFront, checkProperties, getActivePage, getEditor, getInputEditor, getInputModel, getInputModelAsURI, getInputModelEObject, getInputResourceSet, getInputWorkspaceModel, getModelRootElement, getNotationElement, isObserver, isProducer, isTransformationCompleted, isTransformationError, provideFilterKeysJSON, provideInitialVariables, provideProperties, step |
Methods inherited from class de.cau.cs.kieler.sim.kiem.JSONObjectDataComponent |
---|
getInitialVariables, setInitialVariables |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SyncchartsSimDataComponent()
Method Detail |
---|
public JSONObject doStep(JSONObject jSONObject) throws KiemExecutionException
JSONObjectSimulationDataComponent
doStep
in class JSONObjectSimulationDataComponent
jSONObject
- the j son object
KiemExecutionException
- the kiem execution exceptionpublic void doModel2ModelTransform(KielerProgressMonitor monitor) throws Exception
JSONObjectSimulationDataComponent
doModel2ModelTransform
in class JSONObjectSimulationDataComponent
monitor
- the monitor
Exception
- the exceptionpublic boolean checkModelValidation(EObject rootEObject)
JSONObjectSimulationDataComponent
checkModelValidation
in class JSONObjectSimulationDataComponent
public JSONObject doProvideInitialVariables() throws KiemInitializationException
JSONObjectSimulationDataComponent
doProvideInitialVariables
in class JSONObjectSimulationDataComponent
KiemInitializationException
- the kiem initialization exceptionpublic URL resolveBundelFile(String relativePath)
resolveBundelFile
in class JSONObjectSimulationDataComponent
public void loadAndExecuteModel() throws KiemInitializationException
KiemInitializationException
public void initialize() throws KiemInitializationException
IDataComponent
KiemInitializationException
.
initialize
in interface IDataComponent
initialize
in class JSONObjectSimulationDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic void wrapup()
IDataComponent
KiemInitializationException
.
public KiemProperty[] doProvideProperties()
doProvideProperties
in class JSONObjectSimulationDataComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |