public class LEMSSimulatorService extends AExternalProcessNeuronalSimulator
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
filePath |
private Lems |
lems |
private ExternalSimulatorConfig |
lemsExternalSimulatorConfig |
private ModelFormat |
lemsFormat |
private SimulatorConfig |
lemsSimulatorConfig |
private static Log |
logger |
commands, directoryToExecuteFrom, originalFileName, outputFolder, started
aspectConfiguration, experimentState, geppettoModelAccess, model
Constructor and Description |
---|
LEMSSimulatorService() |
Modifier and Type | Method and Description |
---|---|
void |
createCommands(java.lang.String originalFileName)
Creates command to be executed by an external process
|
java.lang.String |
getId() |
java.lang.String |
getName() |
java.lang.String |
getSimulatorPath() |
void |
initialize(DomainModel model,
IAspectConfiguration aspectConfiguration,
ExperimentState experimentState,
ISimulatorCallbackListener listener,
GeppettoModelAccess modelAccess)
This interface assumes the simulator will use the domain model (IModel) to simulate.
|
void |
processDone(java.lang.String[] processCommand) |
void |
registerGeppettoService() |
void |
setLEMSExternalSimulatorConfig(ExternalSimulatorConfig lemsExternalSimulatorConfig)
Deprecated.
for test purposes only, the configuration is autowired
|
void |
setLEMSSimulatorConfig(SimulatorConfig lemsSimulatorConfig)
Deprecated.
for test purposes only, the configuration is autowired
|
void |
simulate()
The simulate method will tell the simulator to execute to run the simulation.
|
processFailed
getExternalProccesses, runExternalProcess
advanceTimeStep, getExperiment, getListener, getTime, getTimeStepUnit, isInitialized, setExperiment, setInitialized, setListener, setTimeStepUnit
addFeature, getFeature, getScope, getsetProjectId, isSupported, setProjectId, setScope
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFeature, getFeature, isSupported
protected java.io.File filePath
private static Log logger
private ModelFormat lemsFormat
private Lems lems
private SimulatorConfig lemsSimulatorConfig
private ExternalSimulatorConfig lemsExternalSimulatorConfig
public void initialize(DomainModel model, IAspectConfiguration aspectConfiguration, ExperimentState experimentState, ISimulatorCallbackListener listener, GeppettoModelAccess modelAccess) throws GeppettoInitializationException, GeppettoExecutionException
ISimulator
initialize
in interface ISimulator
initialize
in class ASimulator
GeppettoInitializationException
GeppettoExecutionException
public void simulate() throws GeppettoExecutionException
ISimulator
simulate
in interface ISimulator
simulate
in class AExternalProcessSimulator
GeppettoExecutionException
public void processDone(java.lang.String[] processCommand) throws GeppettoExecutionException
processDone
in interface IExternalSimulatorCallbackListener
processDone
in class AExternalProcessNeuronalSimulator
GeppettoExecutionException
public void createCommands(java.lang.String originalFileName)
originalFileName
- aspect
- public void registerGeppettoService()
public java.lang.String getName()
public java.lang.String getId()
public java.lang.String getSimulatorPath()
getSimulatorPath
in class AExternalProcessSimulator
public void setLEMSSimulatorConfig(SimulatorConfig lemsSimulatorConfig)
lemsSimulatorConfig
- public void setLEMSExternalSimulatorConfig(ExternalSimulatorConfig lemsExternalSimulatorConfig)
lemsExternalSimulatorConfig
-