Class DeckEntry

java.lang.Object
  |
  +--DeckEntry
All Implemented Interfaces:
java.lang.Cloneable

public class DeckEntry
extends java.lang.Object
implements java.lang.Cloneable

DeckEntry.java This class contains all the data gathered used during the generations process for each node. Is passed to the morphology unit for final output


Field Summary
 java.util.BitSet features
          Collapsed features from all levels
 int group_id
          Group number for secondary links.
 java.lang.String lexeme
          Lexeme that was selected for this node
 java.lang.String object
          Object that is mapped to this node
 java.lang.String type
          This is the type of speech that this node functions as
 Variable variable
          Variable of semantic objects linked to this entry when parsing.
 
Constructor Summary
DeckEntry()
          Default Constructor
DeckEntry(DeckEntry node)
          Constructor for the parser for including groups.
DeckEntry(java.lang.String type, java.lang.String lex, java.util.BitSet features, Variable var, int group)
          Constructor for with the parser for including groups.
 
Method Summary
 java.lang.Object clone()
          Clone this DeckEntry.
 void make(java.lang.String t, java.lang.String o, java.lang.String l, java.util.BitSet f)
          function used by the Producer class during generation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public java.lang.String type
This is the type of speech that this node functions as

object

public java.lang.String object
Object that is mapped to this node

lexeme

public java.lang.String lexeme
Lexeme that was selected for this node

features

public java.util.BitSet features
Collapsed features from all levels

group_id

public int group_id
Group number for secondary links.

variable

public Variable variable
Variable of semantic objects linked to this entry when parsing.
Constructor Detail

DeckEntry

public DeckEntry()
Default Constructor

DeckEntry

public DeckEntry(DeckEntry node)
Constructor for the parser for including groups.
Parameters:
node - The node to be emulated

DeckEntry

public DeckEntry(java.lang.String type,
                 java.lang.String lex,
                 java.util.BitSet features,
                 Variable var,
                 int group)
Constructor for with the parser for including groups.
Parameters:
type - Type of speech with subscript
lex - Lexeme attached to entry.
features - Features to attach to entry.
var - Variable attached to entry (this is used instead of object in parsing)
group - Group number attached to this entry.
Method Detail

clone

public java.lang.Object clone()
Clone this DeckEntry. This overrided method implements deep copying.
Overrides:
clone in class java.lang.Object

make

public void make(java.lang.String t,
                 java.lang.String o,
                 java.lang.String l,
                 java.util.BitSet f)
function used by the Producer class during generation
Parameters:
t - The type of speech expressed as a string, must have a trailing subscript
o - The object to be attached to the unit
l - The lexeme to be attached to the unit
f - The BitSet to be attached to the unit