Package ru.ispras.fortress.data
Enum DataTypeId
- java.lang.Object
-
- java.lang.Enum<DataTypeId>
-
- ru.ispras.fortress.data.DataTypeId
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DataTypeId>
public enum DataTypeId extends java.lang.Enum<DataTypeId>
TheDataTypeId
enumeration is used to specify type of data a solver operates with.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataTypeId.Attribute
-
Enum Constant Summary
Enum Constants Enum Constant Description BIT_VECTOR
A bit vector type.LOGIC_BOOLEAN
A boolean type.LOGIC_INTEGER
An integer type.LOGIC_REAL
A real type.LOGIC_STRING
A string type.MAP
A mapping type.UNKNOWN
Uninterpreted data, that should not be passed to solver.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getAttribute(DataTypeId.Attribute attr, java.util.List<java.lang.Object> params)
boolean
isLogic()
Checks whether the specified type is logical which means that it is purely mathematical and is not associated with data types implemented in real hardware.static DataTypeId
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DataTypeId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIT_VECTOR
public static final DataTypeId BIT_VECTOR
A bit vector type. Represents some data buffer of a specified size.
-
LOGIC_BOOLEAN
public static final DataTypeId LOGIC_BOOLEAN
A boolean type. It is a logic type. This means it has no connection with machine-dependent types used to store boolean values (like BYTE, WORD, etc.). The size attribute is not applicable.
-
LOGIC_INTEGER
public static final DataTypeId LOGIC_INTEGER
An integer type. It is a logic type. This means that it has no connection with machine-dependent types used to store integer values (like 16-bit, 32-bit or 64-bit integer representations). The size attribute is not applicable.
-
LOGIC_REAL
public static final DataTypeId LOGIC_REAL
A real type. It is a logic type. This means that it has no connection with machine-dependent types used store to floating point numbers. The size attribute is not applicable.
-
LOGIC_STRING
public static final DataTypeId LOGIC_STRING
A string type. It is a logic type. This means that it has no connection with machine-dependent types. The size attribute is not applicable.
-
MAP
public static final DataTypeId MAP
A mapping type. Represents mappings from values of one type to another.
-
UNKNOWN
public static final DataTypeId UNKNOWN
Uninterpreted data, that should not be passed to solver.
-
-
Method Detail
-
values
public static DataTypeId[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataTypeId c : DataTypeId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataTypeId valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isLogic
public boolean isLogic()
Checks whether the specified type is logical which means that it is purely mathematical and is not associated with data types implemented in real hardware.- Returns:
true
if the type is logic orfalse
otherwise.
-
getAttribute
public java.lang.Object getAttribute(DataTypeId.Attribute attr, java.util.List<java.lang.Object> params)
-
-