| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class describes the object Index-pair as described in the document
"CCL Language Specification v2.01" section 4.2.4.6, p17.
Indices are used in relations to reference the individual fields in tuples.
Given two variables with tuple valued variables, the index-pair indicates
a field in the first and a field in the second which are somehow related.
This type is not described in section 4.2.2 "Variable related items"
but in section 4.2.4 "Ontology Related Items and Terminals".
However all other terms in this section are simple types so this object
has been put into the "variables" package for convenience.
Constructor Summary | |
IndexPair() Constructs an Empty IndexPair. | |
IndexPair(int first_value, int second_value) Constructs an IndexPair using the Values specified. | |
IndexPair(String str) Constructs a new IndexPair and populates it given the information provided in the String. |
Method Summary | |
IndexPair | copy() Returns an identical copy of the IndexPair object. |
int | getFirstValue() Returns the first value contained in the IndexPair object. |
int | getSecondValue() Returns the second value contained in the IndexPair object. |
static void | main(String[] args) Used to test the class. |
void | setFirstValue(int value) Sets the value of the first value held in the IndexPair object. |
void | setSecondValue(int value) Sets the value of the second value held in the IndexPair object. |
String | toString() Returns a String representation of the IndexPair object. |
Constructor Detail |
public IndexPair()
public IndexPair(int first_value, int second_value)
public IndexPair(String str)
Method Detail |
public IndexPair copy()
public int getFirstValue()
public int getSecondValue()
public static void main(String[] args)
public void setFirstValue(int value)
public void setSecondValue(int value)
public String toString()
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |