org.ddogleg.fitting.modelset
Class ModelManagerDefault<T>
- java.lang.Object
-
- org.ddogleg.fitting.modelset.ModelManagerDefault<T>
-
- All Implemented Interfaces:
- ModelManager<T>
public class ModelManagerDefault<T> extends java.lang.Object implements ModelManager<T>
Default model manager. Assumes the model class has a no argument constructor and a set function.
-
-
Constructor Summary
Constructors Constructor and Description ModelManagerDefault(java.lang.Class type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcopyModel(T src, T dst)Turns 'dst' into an exact copy of 'src'.TcreateModelInstance()Creates a new instance of the model
-
-
-
Method Detail
-
createModelInstance
public T createModelInstance()
Description copied from interface:ModelManagerCreates a new instance of the model- Specified by:
createModelInstancein interfaceModelManager<T>- Returns:
- New model instance
-
copyModel
public void copyModel(T src, T dst)
Description copied from interface:ModelManagerTurns '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:
copyModelin interfaceModelManager<T>- Parameters:
src- Original model. Not modified.dst- Where the copy is written to. Modified.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG