MAIN_RETURN_NAME
Constructor and Description |
---|
ModelRunner(Model m)
construct a model runner
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
execute(java.util.Map<java.lang.String,java.lang.Object> variables,
IConsoleLog console)
Execute a script
|
void |
executeAllSteps()
Execute the model
|
void |
executeCurrentStepAndMoveToNext()
Execute the current step, and move to the next one if an exception occur in
the execution
|
Model |
getModel()
return associated model
|
java.lang.Object |
getValueForLink(ModelLink ml)
Return the value of the link given in parameter
|
boolean |
isFinished()
is execution finished ?
|
void |
restart()
Restart the execution
|
void |
setCurrentStepToBeExecuted(ModelStep currentStepToBeExecuted)
define the listener for following the execution
|
void |
setModelExecutionListener(IModelExecutionListener modelExecutionListener) |
public ModelRunner(Model m) throws java.lang.Exception
java.lang.Exception
public void restart()
public boolean isFinished()
public void executeCurrentStepAndMoveToNext() throws java.lang.Exception
java.lang.Exception
public void executeAllSteps() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getValueForLink(ModelLink ml)
public Model getModel()
public void setCurrentStepToBeExecuted(ModelStep currentStepToBeExecuted)
currentStepToBeExecuted
- public java.util.Map<java.lang.String,java.lang.Object> execute(java.util.Map<java.lang.String,java.lang.Object> variables, IConsoleLog console) throws java.lang.Exception
IExecute
public void setModelExecutionListener(IModelExecutionListener modelExecutionListener)