Interface JMadService
-
- All Known Implementing Classes:
JMadServiceImpl
public interface JMadServiceThis is the main entry-point to jmad. This interface offers methods to create new model, retrieve the active models
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JMadModelcreateModel(JMadModelDefinition definition)This method creates a model based on the given model definition.JMadModelcreateModel(JMadModelDefinition definition, JMadModelStartupConfiguration startupConfiguration)This method creates a model based on the given model definition.voiddeleteModel(JMadModel model)removes the model from the list of available models.JMadModelDefinitionExportergetModelDefinitionExporter()JMadModelDefinitionImportergetModelDefinitionImporter()JMadModelDefinitionManagergetModelDefinitionManager()JMadModelManagergetModelManager()JMadPreferencesgetPreferences()The preferences which are visible by all the models.
-
-
-
Method Detail
-
getModelManager
JMadModelManager getModelManager()
- Returns:
- a class which knows about all the created models and also has one 'active' one which e.g. can be used for switching GUIs etc.
-
getModelDefinitionManager
JMadModelDefinitionManager getModelDefinitionManager()
- Returns:
- a class which knows about all internally available model definitions
-
getModelDefinitionExporter
JMadModelDefinitionExporter getModelDefinitionExporter()
- Returns:
- a class to export model definitions
-
getModelDefinitionImporter
JMadModelDefinitionImporter getModelDefinitionImporter()
- Returns:
- a class to import model definitions
-
getPreferences
JMadPreferences getPreferences()
The preferences which are visible by all the models. Setting parameters here changes the behavior of the models.- Returns:
- the actual preferences for JMad
-
createModel
JMadModel createModel(JMadModelDefinition definition)
This method creates a model based on the given model definition.- Parameters:
definition- the model definition from which to create a new model.- Returns:
- the new model
-
createModel
JMadModel createModel(JMadModelDefinition definition, JMadModelStartupConfiguration startupConfiguration)
This method creates a model based on the given model definition.- Parameters:
definition- the model definition from which to create a new model.startupConfiguration- the startup configuration for the model- Returns:
- the new model
-
deleteModel
void deleteModel(JMadModel model)
removes the model from the list of available models. I.e. removes all internal references to this model.- Parameters:
model- the model to remove
-
-