|
||||||||||
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
public abstract class JSONObjectSimulationDataComponent
The Class JSONObjectDataComponent. Implementation for the extension point JSONObjectDataComponent
that implements the interface IJSONObjectDataComponent
.
Nested Class Summary | |
---|---|
protected class |
JSONObjectSimulationDataComponent.M2MProgressMonitor
|
Field Summary | |
---|---|
protected IWorkbenchPage |
activePage
|
protected boolean |
activePageFlag
|
protected Exception |
exception
The initialization exception that can be possibly thrown. |
protected IEditorPart |
modelEditor
The editor of the model being simulated. |
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 | |
---|---|
JSONObjectSimulationDataComponent()
Instantiates a new JSONObjectDataComponent. |
Method Summary | |
---|---|
void |
bringProblemsViewToFront()
|
boolean |
checkModelValidation(EObject rootEObject)
Check the model validation. |
void |
checkProperties(KiemProperty[] properties)
This method is intended to check if the properties are set correctly. |
void |
doModel2ModelTransform(KielerProgressMonitor monitor)
Implementation of model 2 model transformation. |
JSONObject |
doProvideInitialVariables()
Performs the normal provide initial variables method. |
KiemProperty[] |
doProvideProperties()
|
JSONObject |
doStep(JSONObject jSONObject)
Implements the real step method for this simulation datacomponent. |
protected IWorkbenchPage |
getActivePage()
Gets the active page (blocking) from the UI thread. |
protected IEditorPart |
getEditor(String kiemEditorProperty)
|
protected IEditorPart |
getInputEditor()
|
protected String |
getInputModel()
|
protected URI |
getInputModelAsURI()
|
protected EObject |
getInputModelEObject(IEditorPart editorPart)
|
protected ResourceSet |
getInputResourceSet()
|
protected String |
getInputWorkspaceModel()
|
EObject |
getModelRootElement()
Gets the models root element, an EObject. |
protected View |
getNotationElement(IEditorPart diagramEditor)
|
void |
initialize()
Initialize. |
boolean |
isObserver()
To check whether the DataComponent is an observer. |
boolean |
isProducer()
To check whether the DataComponent is a producer. |
protected boolean |
isTransformationCompleted()
Checks whether transformation completed is true. |
protected boolean |
isTransformationError()
Checks whether transformation error is true. |
JSONObject |
provideFilterKeysJSON()
Provide filter keys and default values as a JSONObject. |
JSONObject |
provideInitialVariables()
Provide (local) interface variables and possible initial values. |
KiemProperty[] |
provideProperties()
Provide properties for this component. |
URL |
resolveBundelFile(String relativePath)
|
JSONObject |
step(JSONObject jSONObject)
Step method for a DataObserver and a DataPrroducer. |
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 |
Methods inherited from interface de.cau.cs.kieler.sim.kiem.IDataComponent |
---|
wrapup |
Field Detail |
---|
protected IEditorPart modelEditor
protected Exception exception
protected IWorkbenchPage activePage
protected boolean activePageFlag
Constructor Detail |
---|
public JSONObjectSimulationDataComponent()
Method Detail |
---|
public JSONObject provideFilterKeysJSON()
provideFilterKeysJSON
in class JSONObjectDataComponent
protected boolean isTransformationCompleted()
protected boolean isTransformationError()
public void doModel2ModelTransform(KielerProgressMonitor monitor) throws Exception
monitor
- the monitor
Exception
- the exceptionpublic JSONObject doStep(JSONObject jSONObject) throws KiemExecutionException
jSONObject
- the j son object
KiemExecutionException
- the kiem execution exceptionpublic final 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 checkModelValidation(EObject rootEObject)
public JSONObject doProvideInitialVariables() throws KiemInitializationException
KiemInitializationException
- the kiem initialization exceptionpublic final EObject getModelRootElement()
public final JSONObject provideInitialVariables() throws KiemInitializationException
JSONObjectDataComponent
JSONObjectDataComponent.getInitialVariables()
method.
provideInitialVariables
in class JSONObjectDataComponent
KiemInitializationException
- if a property prevents the execution of this DataComponent this error should be
thrownprotected IWorkbenchPage getActivePage()
protected IEditorPart getInputEditor()
protected URI getInputModelAsURI()
protected String getInputWorkspaceModel()
protected String getInputModel()
protected EObject getInputModelEObject(IEditorPart editorPart)
protected View getNotationElement(IEditorPart diagramEditor)
protected ResourceSet getInputResourceSet()
public URL resolveBundelFile(String relativePath)
public void initialize() throws KiemInitializationException
IDataComponent
KiemInitializationException
.
initialize
in interface IDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic void bringProblemsViewToFront()
public boolean isObserver()
IDataComponent
isObserver
in interface IDataComponent
public boolean isProducer()
IDataComponent
isProducer
in interface IDataComponent
public KiemProperty[] doProvideProperties()
public final KiemProperty[] provideProperties()
AbstractDataComponent
provideProperties
in class AbstractDataComponent
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
thrownprotected IEditorPart getEditor(String kiemEditorProperty)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |