Package org.xcsp.common.domains
Class Values.RealInterval
- java.lang.Object
-
- org.xcsp.common.domains.Values.RealInterval
-
-
Field Summary
Fields Modifier and Type Field Description Values.SimpleValueinfThe bounds of the interval.booleaninfClosedThe status (open/closed) of the bounds of the interval.Values.SimpleValuesupThe bounds of the interval.booleansupClosedThe status (open/closed) of the bounds of the interval.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRealInterval(Values.SimpleValue inf, Values.SimpleValue sup, boolean infClosed, boolean supClosed)Builds a real interval with the specified bounds together with their status.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Values.RealIntervalparse(String s)Returns a real interval by parsing the specified string.static Values.RealInterval[]parseSeq(String seq)Returns an array of real intervals by parsing the specified string.StringtoString()
-
-
-
Field Detail
-
inf
public final Values.SimpleValue inf
The bounds of the interval.
-
sup
public final Values.SimpleValue sup
The bounds of the interval.
-
infClosed
public final boolean infClosed
The status (open/closed) of the bounds of the interval.
-
supClosed
public final boolean supClosed
The status (open/closed) of the bounds of the interval.
-
-
Constructor Detail
-
RealInterval
protected RealInterval(Values.SimpleValue inf, Values.SimpleValue sup, boolean infClosed, boolean supClosed)
Builds a real interval with the specified bounds together with their status.
-
-
Method Detail
-
parse
public static Values.RealInterval parse(String s)
Returns a real interval by parsing the specified string.
-
parseSeq
public static Values.RealInterval[] parseSeq(String seq)
Returns an array of real intervals by parsing the specified string.
-
-