Class Triplepair

java.lang.Object
  |
  +--Triplepair

public class Triplepair
extends java.lang.Object

This class is a wrapper that keeps the name of the triple an object is in together with its location in a triple. It is also used sparatically throughout the data structures when ever a name and a type or int needs to be bound together


Field Summary
 boolean application
          Boolean the flag for a successful parser pass
 java.lang.String name
          Name of the triple in the triple
 int position
          Position the object has in the triple
 java.lang.String type
          Type of speech this is used as part of a general binding pair
 
Constructor Summary
Triplepair()
          defualt constructor
Triplepair(int rule_used, boolean application, java.lang.String type)
          Constructor used for parsing
Triplepair(java.lang.String name2, int position2)
          Constructor
Triplepair(java.lang.String name1, java.lang.String type1)
          Constructor for general binding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Name of the triple in the triple

type

public java.lang.String type
Type of speech this is used as part of a general binding pair

position

public int position
Position the object has in the triple

application

public boolean application
Boolean the flag for a successful parser pass
Constructor Detail

Triplepair

public Triplepair()
defualt constructor

Triplepair

public Triplepair(java.lang.String name1,
                  java.lang.String type1)
Constructor for general binding
Parameters:
name1 - The triple that is to be associated
type1 - The string that is to be associated

Triplepair

public Triplepair(java.lang.String name2,
                  int position2)
Constructor
Parameters:
name2 - The triple
position2 - The position in the triple the object has

Triplepair

public Triplepair(int rule_used,
                  boolean application,
                  java.lang.String type)
Constructor used for parsing
Parameters:
rule_used - the rule used in the parse
application - the flag telling if an application was possible