|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkorat.finitization.impl.FieldDomain
korat.finitization.impl.BooleanSet
public class BooleanSet
Field Summary |
---|
Fields inherited from class korat.finitization.impl.FieldDomain |
---|
classOfField |
Constructor Summary | |
---|---|
BooleanSet()
|
Method Summary | |
---|---|
boolean |
getBoolean(int index)
gets boolean value for the corresponding candidate vector index |
ClassDomain |
getClassDomain(int classDomainIndex)
Returns the class domain for the given index primitive types should return null . |
ClassDomain |
getClassDomainFor(int objectIndex)
Finds the class domain for given object index by calling getClassDomainFor(objectIndex) and returns the following
class domain. |
int |
getClassDomainIndexFor(int objectIndex)
Given the index of object in this field domain, returns index of that object in its class domain. |
Class |
getClassOfField()
|
int |
getIndexOfFirstObjectInNextClassDomain(int objectIndex)
|
ClassDomain |
getNextClassDomainFor(int objectIndex)
Finds the class domain for given object index by calling getClassDomainFor(objectIndex) and returns the following
class domain. |
int |
getNumberOfElements()
Number of all elements in this field domain. |
int |
getNumOfClassDomains()
Number of class domains contained in this field domain. |
int |
getSizeOfClassDomain(int classDomainIndex)
Number of object in the class domain which is at a classDomainIndex position in the list of all class domains
within this field domain. |
boolean |
isArrayType()
Does this field domain represent array type. |
boolean |
isPrimitiveType()
Does this field domain represent primitive type. |
Methods inherited from class korat.finitization.impl.FieldDomain |
---|
checkClassDomainIndex, checkObjectIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BooleanSet()
Method Detail |
---|
public boolean getBoolean(int index)
index
- -
candidate vector index
false
if index == 0
i or true
if index == 1
public Class getClassOfField()
getClassOfField
in interface IFieldDomain
getClassOfField
in class FieldDomain
public boolean isPrimitiveType()
IFieldDomain
isPrimitiveType
in interface IFieldDomain
true
for primitive data types and strings,
false
otherwisepublic boolean isArrayType()
IFieldDomain
isArrayType
in interface IFieldDomain
true
if class of this FieldDomain is array,
false
otherwisepublic int getNumberOfElements()
FieldDomain
getNumberOfElements
in interface IFieldDomain
getNumberOfElements
in class FieldDomain
public int getClassDomainIndexFor(int objectIndex)
FieldDomain
objectIndex
because primitive type field domains
conceptually contain exactly one class domain.
getClassDomainIndexFor
in class FieldDomain
objectIndex
- -
index of object in the field domain
public int getNumOfClassDomains()
FieldDomain
1
.
getNumOfClassDomains
in interface IFieldDomain
getNumOfClassDomains
in class FieldDomain
IPrimitiveTypeSet
public ClassDomain getClassDomain(int classDomainIndex)
FieldDomain
null
.
getClassDomain
in class FieldDomain
classDomainIndex
- -
the index of the class domain
public ClassDomain getClassDomainFor(int objectIndex)
FieldDomain
getClassDomainFor(objectIndex)
and returns the following
class domain.
Primitive types should return null
.
getClassDomainFor
in class FieldDomain
objectIndex
- -
the index of the given object
public ClassDomain getNextClassDomainFor(int objectIndex)
FieldDomain
getClassDomainFor(objectIndex)
and returns the following
class domain.
Primitive typess should return null
.
getNextClassDomainFor
in class FieldDomain
objectIndex
- -
the index of the given object
public int getSizeOfClassDomain(int classDomainIndex)
FieldDomain
classDomainIndex
position in the list of all class domains
within this field domain.
Primitive types should return -1 if
classDomainIndex
is different than 0, or
getNumberOfElements()
else.
getSizeOfClassDomain
in class FieldDomain
classDomainIndex
- -
class domain index
classDomainIndex
public int getIndexOfFirstObjectInNextClassDomain(int objectIndex)
getIndexOfFirstObjectInNextClassDomain
in class FieldDomain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |