Class BoundMinMax
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BoundDegrees,BoundPhysicalExtent,BoundUnitless
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:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates 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 TypeMethodDescriptionA (maybe longer) description identifying the bean and perhaps its key parameters.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
Description copied from class:AnchorBeanA (maybe longer) description identifying the bean and perhaps its key parameters.By default, it returns the same as
AnchorBean.getBeanName()but beans can optionally override it- Overrides:
describeBeanin classAnchorBean<MarkBounds>- Returns:
- either the short-name of the bean, or a longer description
-
scale
public void scale(double multFactor) Description copied from class:BoundScales the bound by a multiplication factor. -
getDelegate
-
setDelegate
-