de.cau.cs.kieler.sim.kiem
Interface IAutomatedComponent

All Known Subinterfaces:
IAutomatedProducer
All Known Implementing Classes:
TraceReader, TraceValidator

public interface IAutomatedComponent

Interface for components that want to interact with the automated execution plugin.

Rating proposed yellow
(2010-02-03)

Field Summary
static String ITERATION
          Identifier for the iteration.
static String MODEL_FILE
          Identifier for the model file.
static String STATUS
          Identifier for the status of the execution.
 
Method Summary
 String[] getSupportedExtensions()
          Getter for the list of model file extensions that are supported by the component.
 void setParameters(List<KiemProperty> properties)
          Give the component information.
 int wantsMoreRuns()
          Ask the component if it wants to do more runs.
 int wantsMoreSteps()
          Ask the component if it wants to do more steps.
 

Field Detail

MODEL_FILE

static final String MODEL_FILE
Identifier for the model file.

See Also:
Constant Field Values

ITERATION

static final String ITERATION
Identifier for the iteration.

See Also:
Constant Field Values

STATUS

static final String STATUS
Identifier for the status of the execution.

See Also:
Constant Field Values
Method Detail

setParameters

void setParameters(List<KiemProperty> properties)
                   throws KiemInitializationException
Give the component information. This at least contains the following properties: MODEL_FILE gotten from IPath.toOSString() ITERATION as an integer starting with 0 of course

Parameters:
properties - some info
Throws:
KiemInitializationException - if something went wrong while initializing the component

getSupportedExtensions

String[] getSupportedExtensions()
Getter for the list of model file extensions that are supported by the component. Combinations of model files with execution files that don't have at least one supporting component will not be executed.

Returns:
the list of supported model file extensions

wantsMoreRuns

int wantsMoreRuns()
Ask the component if it wants to do more runs. This causes the entire execution to be executed again as many times as the components specified.

Returns:
the number of additional runs

wantsMoreSteps

int wantsMoreSteps()
Ask the component if it wants to do more steps. This causes the entire execution to perform at least as many steps as the components specified.

Returns:
the number of additional steps