Package com.uppaal.model.system.concrete
Class Limit
- java.lang.Object
-
- com.uppaal.model.system.concrete.Limit
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Limit extends java.lang.Object implements java.lang.CloneableA limit consists of a value and information about whether the limit is strict or not.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Limitadd(java.math.BigDecimal arg)Add the input value into the limit valuejava.lang.Objectclone()doublegetDoubleValue()Get the double limit valuejava.math.BigDecimalgetValue()Get the limit valuebooleanisEqualTo(java.math.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(java.math.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(java.math.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(java.math.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(java.math.BigDecimal arg)Is the limit upper bound off the input valuevoidsetStrict(boolean strict)Set the strict valuevoidsetValue(java.math.BigDecimal limit)Set the limit valuejava.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isUnbounded
public boolean isUnbounded()
Is not bounded?- Returns:
- - The limit value
-
getValue
public java.math.BigDecimal 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
public void setValue(java.math.BigDecimal limit)
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
public boolean isUpperBoundOf(java.math.BigDecimal arg)
Is the limit upper bound off the input value- Parameters:
arg- - The bound value- Returns:
- Is the limit upper bounded?
-
isLowerBoundOf
public boolean isLowerBoundOf(java.math.BigDecimal arg)
Is the limit lower bound off the input value- Parameters:
arg- - The bound value- Returns:
- Is the limit lower bound?
-
isStrictUpperBoundOf
public boolean isStrictUpperBoundOf(java.math.BigDecimal arg)
Is the limit strictly upper bound of the input value- Parameters:
arg- - The bound value- Returns:
- Is the limit strictly upper bound?
-
isStrictLowerBoundOf
public boolean isStrictLowerBoundOf(java.math.BigDecimal arg)
Is the limit strictly lower bound of the input value- Parameters:
arg- - The input value- Returns:
- Is the limit strictly lower bound?
-
add
public Limit add(java.math.BigDecimal arg)
Add the input value into the limit value- Parameters:
arg- - The input value- Returns:
- The new limit value
-
isEqualTo
public boolean isEqualTo(java.math.BigDecimal arg)
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
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
isLowerBoundOf
public boolean isLowerBoundOf(Limit v)
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
public boolean isUpperBoundOf(Limit v)
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
public boolean isStrictLowerBoundOf(Limit v)
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
public boolean isStrictUpperBoundOf(Limit v)
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
-
-