Package org.ddogleg.fitting.modelset
Class ModelManagerDefault<T>
java.lang.Object
org.ddogleg.fitting.modelset.ModelManagerDefault<T>
- All Implemented Interfaces:
ModelManager<T>
Default model manager. Assumes the model class has a no argument constructor and a set function.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Turns 'dst' into an exact copy of 'src'.Creates a new instance of the model
-
Constructor Details
-
ModelManagerDefault
-
-
Method Details
-
createModelInstance
Description copied from interface:ModelManager
Creates a new instance of the model- Specified by:
createModelInstance
in interfaceModelManager<T>
- Returns:
- New model instance
-
copyModel
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 interfaceModelManager<T>
- Parameters:
src
- Original model. Not modified.dst
- Where the copy is written to. Modified.
-