public class IntsetType extends SetEnabledType
| Constructor and Description |
|---|
IntsetType(java.lang.String name,
IntegerIntervall interval,
int[] values) |
| Modifier and Type | Method and Description |
|---|---|
int |
decode(int index,
Tuple tuple,
TupleSet tupleSet)
Writes a part of the solution to the PrologOutput
|
int |
encodeElement(int element) |
encode, oneValueNeedsCompleteTupleSetgetInterval, toStringpublic IntsetType(java.lang.String name,
IntegerIntervall interval,
int[] values)
public int decode(int index,
Tuple tuple,
TupleSet tupleSet)
Typedecode in class Typeindex - 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 int encodeElement(int element)
encodeElement in class SetEnabledType