public interface ScriptExecutor
Modifier and Type | Interface and Description |
---|---|
static class |
ScriptExecutor.State
Enumeration representing the state of scripts
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(ScriptExecutorListener listener)
Adds a listener to the script executor.
|
void |
execute(String scriptName)
Executes the script having this name
|
void |
execute(String scriptName,
Date startDate,
int factor)
Executes the script having this name
|
int |
getActionsNumber(String scriptName)
Get the number of actions contained into the script
|
String |
getCurrentScript()
Gets the current script in execution
|
ScriptExecutor.State |
getCurrentScriptState()
Gets the execution estate of the current script (if there is one)
|
float |
getExecutedPercentage()
Returns percentage of completed instructions of current script.
|
int |
getExecutionTime(String scriptName)
Gets the execution time in (virtual) minutes of the script file
|
int |
getFactor(String scriptName)
Gets the factor defined in the script file
|
List<String> |
getScriptList()
Gets a lists of scripts in the platform
|
long |
getStartDate(String scriptName)
Gets the start date defined in the script file
|
ScriptExecutor.State |
getState(String scriptName)
Gets the current state of the script file
|
void |
pause()
Pauses the execution of the current script (if there is one)
|
void |
removeListener(ScriptExecutorListener listener)
Removes a listener to the script executor.
|
void |
resume()
Resumes the execution of the current script (if there is one)
|
void |
saveSimulationScript(String fileName)
Saves the current state into a script having the name use as argument
|
void |
stop()
Stops the script execution
|
void addListener(ScriptExecutorListener listener)
listener
- the listener to be added.void removeListener(ScriptExecutorListener listener)
listener
- the listener to be removed.String getCurrentScript()
void execute(String scriptName)
scriptName
- void execute(String scriptName, Date startDate, int factor)
scriptName
- startDate
- factor
- void stop()
void pause()
void resume()
ScriptExecutor.State getCurrentScriptState()
float getExecutedPercentage()
void saveSimulationScript(String fileName)
fileName
- the name of the script fileint getFactor(String scriptName)
scriptName
- the script file namelong getStartDate(String scriptName)
scriptName
- the script file nameint getActionsNumber(String scriptName)
scriptName
- the script file nameint getExecutionTime(String scriptName)
scriptName
- the script file nameScriptExecutor.State getState(String scriptName)
scriptName
- the script file nameCopyright © 2012-2013 ADELE Research Group. All Rights Reserved.