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 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
      • cleanup

        void cleanup()
        cleans up each model. Does not remove anything from the Model-manager