public class ParameterAggregation<E extends ParameterObjectInterface> extends Object implements ParameterObjectInterface
Constructor and Description |
---|
ParameterAggregation()
Create a collection of parametrized objects.
|
ParameterAggregation(E[] parameters)
Create a collection of parametrized objects.
|
ParameterAggregation(Set<E> parameters)
Create a collection of parametrized objects.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E parameterObject)
Add an object this parameterization.
|
CurveInterface |
getCloneForParameter(double[] value)
Create a clone with a modified parameter.
|
Map<E,double[]> |
getObjectsToModifyForParameter(double[] parameter) |
double[] |
getParameter()
Get the current parameter associated with the state of the objects.
|
void |
remove(E parameterObject)
Remove an object from this parameterization.
|
void |
setParameter(double[] parameter)
Set the current parameter and change the state of the objects.
|
public ParameterAggregation()
public ParameterAggregation(Set<E> parameters)
parameters
- A set of objects implementing ParameterObjectInterface to be combined to a single object.public ParameterAggregation(E[] parameters)
parameters
- A set of objects implementing ParameterObjectInterface to be combined to a single object.public void add(E parameterObject)
parameterObject
- The parameter object to add to this parameterizationpublic void remove(E parameterObject)
parameterObject
- The parameter object to remove.public double[] getParameter()
ParameterObjectInterface
getParameter
in interface ParameterObjectInterface
public void setParameter(double[] parameter)
ParameterObjectInterface
setParameter
in interface ParameterObjectInterface
parameter
- The parameter associated with the new state of the objects.public Map<E,double[]> getObjectsToModifyForParameter(double[] parameter)
public CurveInterface getCloneForParameter(double[] value) throws CloneNotSupportedException
ParameterObjectInterface
getCloneForParameter
in interface ParameterObjectInterface
value
- The new parameter.CloneNotSupportedException
- Thrown, when the curve could not be cloned.Copyright © 2015. All rights reserved.