Class ModelManagerDefault<T>

All Implemented Interfaces:

public class ModelManagerDefault<T> extends Object implements ModelManager<T>
Default model manager. Assumes the model class has a no argument constructor and a set function.
  • Constructor Details

    • ModelManagerDefault

      public ModelManagerDefault(Class type)
  • Method Details

    • createModelInstance

      public T createModelInstance()
      Description copied from interface: ModelManager
      Creates a new instance of the model
      Specified by:
      createModelInstance in interface ModelManager<T>
      New model instance
    • copyModel

      public void copyModel(T src, T dst)
      Description copied from interface: ModelManager
      Turns 'dst' into an exact copy of 'src'. If the model has a variable structure then it is assumed that the two models have the same structure.
      Specified by:
      copyModel in interface ModelManager<T>
      src - Original model. Not modified.
      dst - Where the copy is written to. Modified.