Package org.xcsp.common.domains
Class Domains.DomBasic
- java.lang.Object
-
- org.xcsp.common.domains.Domains.DomBasic
-
- All Implemented Interfaces:
Domains.IDom
- Direct Known Subclasses:
Domains.Dom
,Domains.DomReal
,Domains.DomStochastic
,Domains.DomSymbolic
- Enclosing class:
- Domains
public static class Domains.DomBasic extends Object implements Domains.IDom
A class for representing basic domains, i.e. domains for integer, symbolic, real and stochastic variables.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Domains.DomBasic
parse(String s, Types.TypeVar type)
Returns the basic domain obtained by parsing the specified string, according to the value of the specified type.String
toString()
-
-
-
Field Detail
-
values
public final Object[] values
The values of the domain: for an integer domain, values are IntegerEntity, for a symbolic domain, values are String, and for a float domain, values are RealInterval.
-
-
Constructor Detail
-
DomBasic
protected DomBasic(Object[] values)
Builds a basic domain, with the specified values.
-
-
Method Detail
-
parse
public static Domains.DomBasic parse(String s, Types.TypeVar type)
Returns the basic domain obtained by parsing the specified string, according to the value of the specified type.
-
-