Package com.uppaal.model.system.concrete
Class Limit
java.lang.Object
com.uppaal.model.system.concrete.Limit
- All Implemented Interfaces:
Cloneable
public class Limit extends Object implements Cloneable
A limit consists of a value and information about whether the limit
is strict or not.
-
Constructor Summary
Constructors Constructor Description Limit()Initialises an unbounded limit, i.e.Limit(BigDecimal limit, boolean strict)Constructor -
Method Summary
Modifier and Type Method Description Limitadd(BigDecimal arg)Add the input value into the limit valueObjectclone()doublegetDoubleValue()Get the double limit valueBigDecimalgetValue()Get the limit valuebooleanisEqualTo(BigDecimal arg)Is the input value equal to the limit value?booleanisLowerBoundOf(Limit v)Is the input limit value lower bounded of the limit value?booleanisLowerBoundOf(BigDecimal arg)Is the limit lower bound off the input valuebooleanisStrict()Is the limit strictly?booleanisStrictLowerBoundOf(Limit v)Is the input limit value strictly lower bounded of the limit value?booleanisStrictLowerBoundOf(BigDecimal arg)Is the limit strictly lower bound of the input valuebooleanisStrictUpperBoundOf(Limit v)Is the input limit value strictly upper bounded of the limit value?booleanisStrictUpperBoundOf(BigDecimal arg)Is the limit strictly upper bound of the input valuebooleanisUnbounded()Is not bounded?booleanisUpperBoundOf(Limit v)Is the input limit value upper bounded of the limit value?booleanisUpperBoundOf(BigDecimal arg)Is the limit upper bound off the input valuevoidsetStrict(boolean strict)Set the strict valuevoidsetValue(BigDecimal limit)Set the limit valueStringtoString()
-
Constructor Details
-
Method Details
-
toString
-
isUnbounded
public boolean isUnbounded()Is not bounded?- Returns:
- - The limit value
-
getValue
Get the limit value- Returns:
- value - The limit value
-
getDoubleValue
public double getDoubleValue()Get the double limit value- Returns:
- value - The double limit value
-
setValue
Set the limit value- Parameters:
limit- - The limit value
-
isStrict
public boolean isStrict()Is the limit strictly?- Returns:
- strict - Is the limit strictly?
-
setStrict
public void setStrict(boolean strict)Set the strict value- Parameters:
strict- - The value
-
isUpperBoundOf
Is the limit upper bound off the input value- Parameters:
arg- - The bound value- Returns:
- Is the limit upper bounded?
-
isLowerBoundOf
Is the limit lower bound off the input value- Parameters:
arg- - The bound value- Returns:
- Is the limit lower bound?
-
isStrictUpperBoundOf
Is the limit strictly upper bound of the input value- Parameters:
arg- - The bound value- Returns:
- Is the limit strictly upper bound?
-
isStrictLowerBoundOf
Is the limit strictly lower bound of the input value- Parameters:
arg- - The input value- Returns:
- Is the limit strictly lower bound?
-
add
Add the input value into the limit value- Parameters:
arg- - The input value- Returns:
- The new limit value
-
isEqualTo
Is the input value equal to the limit value?- Parameters:
arg- - The input value- Returns:
- Is the input value lower and upper bounded of the lime value?
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
isLowerBoundOf
Is the input limit value lower bounded of the limit value?- Parameters:
v- - The limit value- Returns:
- Is the input value lower bounded of the lime value?
-
isUpperBoundOf
Is the input limit value upper bounded of the limit value?- Parameters:
v- - The input limit value- Returns:
- Is the input value upper bounded of the lime value?
-
isStrictLowerBoundOf
Is the input limit value strictly lower bounded of the limit value?- Parameters:
v- - The input limit value- Returns:
- Is the input limit value strictly lower bounded of the limit value?
-
isStrictUpperBoundOf
Is the input limit value strictly upper bounded of the limit value?- Parameters:
v- - The input limit value- Returns:
- whether the upper bound is strict
-