Class BoundMinMax
Object
org.anchoranalysis.bean.AnchorBean<MarkBounds>
org.anchoranalysis.mpp.bean.bound.MarkBounds
org.anchoranalysis.mpp.bean.bound.Bound
org.anchoranalysis.mpp.bean.bound.BoundMinMax
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BoundDegrees,BoundPhysicalExtent,BoundUnitless
public abstract class BoundMinMax extends Bound
An abstract class representing a bound with minimum and maximum values.
This class extends Bound and uses a ResolvedBound as a delegate to manage the
minimum and maximum values.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedBoundMinMax()Creates a new instance with default minimum and maximum values.protectedBoundMinMax(double min, double max)Creates a new instance with specified minimum and maximum values.protectedBoundMinMax(BoundMinMax source)Creates a new instance by copying another BoundMinMax. -
Method Summary
Modifier and Type Method Description StringdescribeBean()ResolvedBoundgetDelegate()doublegetMax()Gets the maximum value of the bound.doublegetMin()Gets the minimum value of the bound.voidscale(double multFactor)Scales the bound by a multiplication factor.voidsetDelegate(ResolvedBound delegate)voidsetMax(double max)Sets the maximum value of the bound.voidsetMin(double min)Sets the minimum value of the bound.Methods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBounds
calculateMinMax, getMaxResolved, getMinResolvedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BoundMinMax
protected BoundMinMax()Creates a new instance with default minimum and maximum values. -
BoundMinMax
protected BoundMinMax(double min, double max)Creates a new instance with specified minimum and maximum values.- Parameters:
min- the minimum valuemax- the maximum value
-
BoundMinMax
Creates a new instance by copying another BoundMinMax.- Parameters:
source- the source BoundMinMax to copy from
-
-
Method Details
-
getMin
public double getMin()Gets the minimum value of the bound.- Returns:
- the minimum value
-
setMin
public void setMin(double min)Sets the minimum value of the bound.- Parameters:
min- the minimum value to set
-
getMax
public double getMax()Gets the maximum value of the bound.- Returns:
- the maximum value
-
setMax
public void setMax(double max)Sets the maximum value of the bound.- Parameters:
max- the maximum value to set
-
describeBean
- Overrides:
describeBeanin classAnchorBean<MarkBounds>
-
scale
public void scale(double multFactor)Description copied from class:BoundScales the bound by a multiplication factor. -
getDelegate
-
setDelegate
-