|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Core
The core is a central class managing model and simulation objects. New models are created by one of the create methods. A simulation is created by passing the Environment object to the createScenarioManager method, which then instantiates a simulation.
Note: There are no means yet to store and open a DefinitionEnvironment
, i.e. model setups cannot be persisted.
Method Summary | |
---|---|
ScenarioConnector |
connectScenarioManager(java.lang.String ns,
java.util.HashMap<?,?> props)
Connects to running simulation. |
DefinitionEnvironment |
create(java.lang.String ns,
java.util.HashMap<?,?> props)
Create a gsim Environment. |
DefinitionEnvironment |
create(java.lang.String ns,
java.io.InputStream setup,
java.util.HashMap<?,?> props)
Create a gsim Environment from an existing model file. |
BatchManager |
createBatchManager(Executable ex,
java.util.HashMap<java.lang.String,java.lang.Object> props)
Creates a BatchManager. |
ScenarioManager |
createScenarioManager(DefinitionEnvironment env,
java.util.HashMap<java.lang.String,java.lang.Object> props,
int steps,
int runs)
Creates a ScenarioManager (used to start and control simulation). |
java.io.InputStream |
getModelDefinition(java.lang.String canonicalPath)
Utility method to open a file containing a model definition in xml format. |
java.lang.String[] |
getRunningSimulations(java.util.HashMap<?,?> props)
Connects to the simulation engine and retrieves the ids of simulations currently being executed. |
Method Detail |
---|
ScenarioConnector connectScenarioManager(java.lang.String ns, java.util.HashMap<?,?> props) throws GSimException
ns
- namespace of the modelprops
- property table
GSimException
DefinitionEnvironment create(java.lang.String ns, java.util.HashMap<?,?> props) throws GSimException
ns
- namespace (a unique identifier) of the modelprops
- property table
GSimException
DefinitionEnvironment create(java.lang.String ns, java.io.InputStream setup, java.util.HashMap<?,?> props) throws GSimException
ns
- nameSpace (a unique identifier) of the modelsetup
- input-stream of the model fileprops
- property table
GSimException
BatchManager createBatchManager(Executable ex, java.util.HashMap<java.lang.String,java.lang.Object> props) throws GSimException
ex
- executable interfaceprops
- runtime properties
GSimException
ScenarioManager createScenarioManager(DefinitionEnvironment env, java.util.HashMap<java.lang.String,java.lang.Object> props, int steps, int runs) throws GSimException
env
- DefinitionEnvironmentprops
- runtime propertiessteps
- number of steps the simulation shall runruns
- number of repetitions
GSimException
java.io.InputStream getModelDefinition(java.lang.String canonicalPath)
canonicalPath
- path to the filejava.lang.String[] getRunningSimulations(java.util.HashMap<?,?> props) throws GSimException
props
- Property table
GSimException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |