public class NSGSimulatorService extends AExternalProcessNeuronalSimulator
Modifier and Type | Field and Description |
---|---|
protected java.nio.file.Path |
filePath |
private CiJob |
jobStatus |
private static Log |
logger |
private CiClient |
myClient |
private RemoteSimulatorConfig |
NSGExternalSimulatorConfig |
private int |
numberProcessors |
commands, directoryToExecuteFrom, originalFileName, outputFolder, started
aspectConfiguration, experimentState, geppettoModelAccess, model
Constructor and Description |
---|
NSGSimulatorService() |
Modifier and Type | Method and Description |
---|---|
CiClient |
getCiClient()
Deprecated.
for test purposes only
|
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() |
void |
registerGeppettoService() |
void |
setNSGExternalSimulatorConfig(RemoteSimulatorConfig nsgExternalSimulatorConfig)
Deprecated.
for test purposes only, the configuration is autowired
|
void |
simulate()
The simulate method will tell the simulator to execute to run the simulation.
|
processDone, 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.nio.file.Path filePath
private static Log logger
private RemoteSimulatorConfig NSGExternalSimulatorConfig
private CiClient myClient
private CiJob jobStatus
private int numberProcessors
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() throws GeppettoExecutionException
GeppettoExecutionException
public java.lang.String getName()
public java.lang.String getId()
public java.lang.String getSimulatorPath()
getSimulatorPath
in class AExternalProcessSimulator
public void registerGeppettoService()
public void setNSGExternalSimulatorConfig(RemoteSimulatorConfig nsgExternalSimulatorConfig)
nsgExternalSimulatorConfig
- public CiClient getCiClient()