Package org.proforma.variability.util
Class VisOrRange
java.lang.Object
org.proforma.variability.util.VisOrRange
This class holds either a single specification value of an interval scaled type,
or it holds a range specification of an interval scaled type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(VisOrRange other) doubledistanceTo(VisOrRange other) getCount()getFirst()getFirstCeil(double lowerBound, boolean inclusive, Vp vp) getLast()getLastFloor(double upperBound, boolean inclusive, Vp vp) getStep(long index) booleanisRange()booleanisSingle()longsize()voidvalidate()
-
Constructor Details
-
VisOrRange
-
VisOrRange
-
-
Method Details
-
isRange
public boolean isRange() -
isSingle
public boolean isSingle() -
getSingle
-
getFirst
-
getLast
-
getCount
-
getHullMin
-
getHullMax
-
contains
-
calculateNewVpOrRangesIncludingThisAndGivenVpOrRange
-
size
public long size() -
distanceTo
-
toString
-
stepWidth
-
getStep
-
getFirstCeil
-
getLastFloor
-
validate
public void validate() -
getRandomElement
-