|
||||||||||
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.trace.TraceValidator
public class TraceValidator
Data-component to read traces in esi format.
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.IAutomatedComponent |
---|
ITERATION, MODEL_FILE, STATUS |
Constructor Summary | |
---|---|
TraceValidator()
|
Method Summary | |
---|---|
String[] |
getSupportedExtensions()
Getter for the list of model file extensions that are supported by the component. |
void |
initialize()
Initialize. |
boolean |
isObserver()
To check whether the DataComponent is an observer. |
boolean |
isProducer()
To check whether the DataComponent is a producer. |
List<KiemProperty> |
produceInformation()
Notifies the DataComponent that the schedule has finished and asks it to provide some information for evaluation. |
JSONObject |
provideInitialVariables()
Provide (local) interface variables and possible initial values. |
void |
setParameters(List<KiemProperty> properties)
Give the component information. |
JSONObject |
step(JSONObject input)
Step method for a DataObserver and a DataPrroducer. |
int |
wantsMoreRuns()
Ask the component if it wants to do more runs. |
int |
wantsMoreSteps()
Ask the component if it wants to do more steps. |
void |
wrapup()
Wrap-up. |
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 |
Constructor Detail |
---|
public TraceValidator()
Method Detail |
---|
public JSONObject step(JSONObject input) throws KiemExecutionException
KiemExecutionException
that is then catched by the execution manager an brought to
the user's attention.
step
in interface IJSONObjectDataComponent
input
- the concrete JSONObject of input data (if observer)
KiemExecutionException
- a KiemExecutionExceptionpublic JSONObject provideInitialVariables() throws KiemInitializationException
JSONObjectDataComponent.getInitialVariables()
method.
provideInitialVariables
in class JSONObjectDataComponent
KiemInitializationException
- if a property prevents the execution of this DataComponent this error should be
thrownpublic void initialize() throws KiemInitializationException
KiemInitializationException
.
initialize
in interface IDataComponent
KiemInitializationException
- a KiemInitializationExceptionpublic boolean isObserver()
isObserver
in interface IDataComponent
public void wrapup()
KiemInitializationException
.
wrapup
in interface IDataComponent
public List<KiemProperty> produceInformation()
produceInformation
in interface IAutomatedProducer
public void setParameters(List<KiemProperty> properties)
IAutomatedComponent.MODEL_FILE
gotten from IPath.toOSString()
IAutomatedComponent.ITERATION
as an integer starting with 0 of course
setParameters
in interface IAutomatedComponent
properties
- some infopublic int wantsMoreRuns()
wantsMoreRuns
in interface IAutomatedComponent
public int wantsMoreSteps()
wantsMoreSteps
in interface IAutomatedComponent
public String[] getSupportedExtensions()
getSupportedExtensions
in interface IAutomatedComponent
public boolean isProducer()
isProducer
in interface IDataComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |