vec_math
Class BoundedVariable

java.lang.Object
  extended by vec_math.AssignedVariable
      extended by vec_math.BoundedVariable
All Implemented Interfaces:
Serializable, Bounded, Variable

public class BoundedVariable
extends AssignedVariable
implements Bounded

A simple named variable with error, name and unit.

See Also:
Serialized Form

Field Summary
private  Double max
          The minimum.
private  Double min
          The minimum.
 
Constructor Summary
BoundedVariable(String n, double v, double err, String u, Double minimum, Double maximum)
          All parameter properties known.
 
Method Summary
 boolean equals(Object that)
          To variables are equal if they have the same name, value, error and unit.
 Double getLowerLimit()
          Returns the lower bound or null, if not existing.
 Double getUpperLimit()
          Returns the upper limit or null, if no upper limit exists.
 
Methods inherited from class vec_math.AssignedVariable
asList, getError, getName, getUnit, getValue, hashCode, significant, significant, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface vec_math.Variable
getError, getName, getUnit, getValue
 

Field Detail

min

private Double min
The minimum.


max

private Double max
The minimum.

Constructor Detail

BoundedVariable

public BoundedVariable(String n,
                       double v,
                       double err,
                       String u,
                       Double minimum,
                       Double maximum)
All parameter properties known.

Method Detail

getLowerLimit

public Double getLowerLimit()
Description copied from interface: Bounded
Returns the lower bound or null, if not existing.

Specified by:
getLowerLimit in interface Bounded

getUpperLimit

public Double getUpperLimit()
Description copied from interface: Bounded
Returns the upper limit or null, if no upper limit exists.

Specified by:
getUpperLimit in interface Bounded

equals

public boolean equals(Object that)
To variables are equal if they have the same name, value, error and unit.

Overrides:
equals in class AssignedVariable