Interface JMadModelManager
-
- All Known Implementing Classes:
JMadModelManagerImpl
public interface JMadModelManager
this interface defines basic methods to keep track of the actual model. There is always exactly one active model.The manager keeps also track of all created models in the service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(JMadModelManagerListener listener)
adds a listener to theJMadModelManager
void
addModel(JMadModel model)
adds a model to the managervoid
cleanup()
cleans up each model.JMadModel
getActiveModel()
java.util.List<Element>
getCommonSequenceElements(JMadModel model1, JMadModel model2, SequenceElementFilter filter)
java.util.List<JMadModel>
getModels()
void
removeListener(JMadModelManagerListener listener)
removes a listener from theJMadModelManager
void
removeModel(JMadModel model)
remove a model from the managervoid
setActiveModel(JMadModel model)
-
-
-
Method Detail
-
getActiveModel
JMadModel getActiveModel()
- Returns:
- the model, which is the actual one.
-
setActiveModel
void setActiveModel(JMadModel model)
- Parameters:
model
- the model to set as the active one.
-
addModel
void addModel(JMadModel model)
adds a model to the manager- Parameters:
model
- the model to add
-
removeModel
void removeModel(JMadModel model)
remove a model from the manager- Parameters:
model
- the model to remove
-
getModels
java.util.List<JMadModel> getModels()
- Returns:
- all the currently available models
-
addListener
void addListener(JMadModelManagerListener listener)
adds a listener to theJMadModelManager
- Parameters:
listener
- the listener to add
-
removeListener
void removeListener(JMadModelManagerListener listener)
removes a listener from theJMadModelManager
- Parameters:
listener
- the listener to remove
-
cleanup
void cleanup()
cleans up each model. Does not remove anything from the Model-manager
-
getCommonSequenceElements
java.util.List<Element> getCommonSequenceElements(JMadModel model1, JMadModel model2, SequenceElementFilter filter)
-
-