|
||||||||||
| 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 == 1public Class getClassOfField()
getClassOfField in interface IFieldDomaingetClassOfField in class FieldDomainpublic boolean isPrimitiveType()
IFieldDomain
isPrimitiveType in interface IFieldDomaintrue for primitive data types and strings,
false otherwisepublic boolean isArrayType()
IFieldDomain
isArrayType in interface IFieldDomaintrue if class of this FieldDomain is array,
false otherwisepublic int getNumberOfElements()
FieldDomain
getNumberOfElements in interface IFieldDomaingetNumberOfElements in class FieldDomainpublic int getClassDomainIndexFor(int objectIndex)
FieldDomainobjectIndex because primitive type field domains
conceptually contain exactly one class domain.
getClassDomainIndexFor in class FieldDomainobjectIndex - -
index of object in the field domain
public int getNumOfClassDomains()
FieldDomain1.
getNumOfClassDomains in interface IFieldDomaingetNumOfClassDomains in class FieldDomainIPrimitiveTypeSetpublic ClassDomain getClassDomain(int classDomainIndex)
FieldDomainnull.
getClassDomain in class FieldDomainclassDomainIndex - -
the index of the class domain
public ClassDomain getClassDomainFor(int objectIndex)
FieldDomaingetClassDomainFor(objectIndex) and returns the following
class domain.
Primitive types should return null.
getClassDomainFor in class FieldDomainobjectIndex - -
the index of the given object
public ClassDomain getNextClassDomainFor(int objectIndex)
FieldDomaingetClassDomainFor(objectIndex) and returns the following
class domain.
Primitive typess should return null.
getNextClassDomainFor in class FieldDomainobjectIndex - -
the index of the given object
public int getSizeOfClassDomain(int classDomainIndex)
FieldDomainclassDomainIndex 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 FieldDomainclassDomainIndex - -
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 | |||||||||