public class ElementaryCondition
extends java.lang.Object
Constructor | Description |
---|---|
ElementaryCondition(int attributePrefType,
int typeOfUnion,
int attributeNumber,
Field value,
Attribute attribute) |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(ElementaryCondition EC) |
Compares given elementary condition with this one
|
Attribute |
getAttribute() |
|
int |
getAttributeNumber() |
|
int |
getAttributePreferenceType() |
|
int |
getOryginalRelationType() |
|
Field |
getValue() |
|
boolean |
isCovered(SimpleField field) |
|
Condition |
toCondition() |
|
java.lang.String |
toString() |
public ElementaryCondition(int attributePrefType, int typeOfUnion, int attributeNumber, Field value, Attribute attribute)
attributePrefType
- Preference type on given attributetypeOfUnion
- type of used union. It can be one of UPWARD or DOWNWARD (AT_LEAST or AT_MOST).attributeNumber
- number of attributevalue
- Reference value for this conditionpublic int getAttributeNumber()
public Field getValue()
public int getAttributePreferenceType()
public int compare(ElementaryCondition EC)
EC
- Given elementary conditionpublic boolean isCovered(SimpleField field)
field
- given fieldtrue
if given field fulfills this elementary conditionpublic java.lang.String toString()
toString
in class java.lang.Object
public int getOryginalRelationType()
public Condition toCondition()
public Attribute getAttribute()