FuzzyRelation
, RelationAtLeast
, RelationAtLeastForPairOfValues
, RelationAtMost
, RelationAtMostForPairOfValues
, RelationEqual
, RelationEqualForPairOfValues
, RelationGreaterThan
, RelationGreaterThanForPairOfValues
, RelationLessThan
, RelationLessThanForPairOfValues
, RelationNotEqual
public abstract class Relation
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
abstract Relation |
duplicate() |
Returns duplicate of this relation, which is fully independent of this relation
|
abstract boolean |
fulfilledBy(Field value) |
Checks if given value fulfills this relation.
|
Field |
getReferenceValue() |
Gets reference to the duplicate of value stored in this relation or
null
if reference value is not set |
void |
setReferenceValue(Field referenceValue) |
Sets reference value for this relation.
|
abstract java.lang.String |
toString() |
Gets textual form of this relation
|
public Field getReferenceValue()
null
if reference value is not setnull
if reference value is not setpublic void setReferenceValue(Field referenceValue)
null
, then reference to the duplicate of given value is stored in this class,
otherwise null
is stored.referenceValue
- new reference value for this relationpublic abstract boolean fulfilledBy(Field value)
value
- field's value that should be compared with reference value or checked in other waytrue
if this relation is fulfilled by given value, false
otherwisepublic abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract Relation duplicate()