public abstract class Type
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected IntegerIntervall |
interval |
| Constructor and Description |
|---|
Type(java.lang.String name,
IntegerIntervall interval) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
decode(int index,
Tuple tuple,
TupleSet tupleSet)
Writes a part of the solution to the PrologOutput
|
abstract int[] |
encode(int element) |
IntegerIntervall |
getInterval() |
abstract boolean |
oneValueNeedsCompleteTupleSet() |
java.lang.String |
toString() |
protected final IntegerIntervall interval
public Type(java.lang.String name,
IntegerIntervall interval)
public IntegerIntervall getInterval()
public abstract int decode(int index,
Tuple tuple,
TupleSet tupleSet)
index - the index of the value to print in the tuple. E.g. if a tuple
of a binary relation A<->B should be printed, this method is
called for type A with index 1 and then for type B with index
2tuple - one element of the solution that should be printedtupleSet - the complete solutionpublic abstract int[] encode(int element)
public abstract boolean oneValueNeedsCompleteTupleSet()
public java.lang.String toString()
toString in class java.lang.Object