|
||||||||||
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.automated.AbstractAutomatedComponent
de.cau.cs.kieler.sim.kiem.automated.AbstractAutomatedProducer
de.cau.cs.kieler.synccharts.sim.sc.SCDataComponent
public class SCDataComponent
This is the data component to handle the communication between KIEM and the external SC-Program.
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 |
Fields inherited from interface de.cau.cs.kieler.sim.kiem.automated.IAutomatedComponent |
---|
ANY_TYPE, ANY_TYPE_ARRAY, ITERATION, MODEL_FILE |
Constructor Summary | |
---|---|
SCDataComponent()
|
Method Summary | |
---|---|
String |
getInputModel()
|
String[] |
getSupportedExtensions()
This component doesn't support any files. |
void |
initialize()
This method fetches the location of the used sc- and header files. |
boolean |
isObserver()
To check whether the DataComponent is an observer. |
boolean |
isProducer()
To check whether the DataComponent is a producer. |
List<KiemProperty> |
produceInformation()
The default implementation produces no information. |
JSONObject |
provideInitialVariables()
Provide (local) interface variables and possible initial values. |
KiemProperty[] |
provideProperties()
Provide properties for this component. |
void |
setParameters(List<KiemProperty> properties)
The default implementation only retrieves the model file and the current iteration index. |
JSONObject |
step(JSONObject jSONObject)
Step method for a DataObserver and a DataPrroducer. |
void |
wrapup()
On stopping the simulation the sc process will be destroyed (if it was not closed normally). |
Methods inherited from class de.cau.cs.kieler.sim.kiem.automated.AbstractAutomatedProducer |
---|
produceModelFileInformation |
Methods inherited from class de.cau.cs.kieler.sim.kiem.automated.AbstractAutomatedComponent |
---|
getIteration, getModelFile, getNumberOfAdditionalIterations, getNumberOfAdditionalSteps, wantsMoreRuns, wantsMoreSteps |
Methods inherited from class de.cau.cs.kieler.sim.kiem.JSONObjectDataComponent |
---|
getInitialVariables, provideFilterKeysJSON, 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.automated.IAutomatedComponent |
---|
getNumberOfAdditionalIterations, getNumberOfAdditionalSteps, wantsMoreRuns, wantsMoreSteps |
Constructor Detail |
---|
public SCDataComponent()
Method Detail |
---|
public void initialize() throws KiemInitializationException
KiemInitializationException
.
KiemInitializationException
- a KiemInitializationExceptionpublic JSONObject step(JSONObject jSONObject) throws KiemExecutionException
KiemExecutionException
that is then catched by the execution manager an brought to
the user's attention.
The step method handles the communication between the generated sc program and KIEM. For
communication JSON Strings are exchanged via std. I/O.
jSONObject
- the concrete JSONObject of input data (if observer)
KiemExecutionException
- a KiemExecutionExceptionpublic boolean isObserver()
public boolean isProducer()
public KiemProperty[] provideProperties()
AbstractDataComponent
provideProperties
in class AbstractDataComponent
public void wrapup() throws KiemInitializationException
KiemInitializationException
.
KiemInitializationException
- a KiemInitializationExceptionpublic String getInputModel()
public JSONObject provideInitialVariables()
JSONObjectDataComponent
JSONObjectDataComponent.getInitialVariables()
method.
provideInitialVariables
in class JSONObjectDataComponent
JSONObject
the initial JSON object before the simulation could be started.
A path for the output files will be determined. A differentiation between simulation
or validation will be made. After these initializations the codegen process will be
started.public List<KiemProperty> produceInformation()
produceInformation
in interface IAutomatedProducer
produceInformation
in class AbstractAutomatedProducer
public String[] getSupportedExtensions()
getSupportedExtensions
in interface IAutomatedComponent
getSupportedExtensions
in class AbstractAutomatedComponent
public void setParameters(List<KiemProperty> properties) throws KiemInitializationException
setParameters
in interface IAutomatedComponent
setParameters
in class AbstractAutomatedComponent
properties
- the properties passed before each execution
KiemInitializationException
- if something went wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |