LGames
Class Symbols

java.lang.Object
  |
  +--LGames.Symbols

public class Symbols
extends java.lang.Object

The Symbols class stores and manages lexical elements. It contains a list of meanings and functions to guide the hearer's interpretation and adaptation.

Copyright (c) 2004 Paul Vogt


Constructor Summary
Symbols()
          Empty constructor
Symbols(int id)
          Constructs a symbol, specifying only the id.
Symbols(int id, java.lang.String f)
          Constructs a symbol, specifying the form and ID
 
Method Summary
 boolean equals(java.lang.Object s)
           
 java.lang.String getForm()
           
 int getID()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Symbols

public Symbols()
Empty constructor


Symbols

public Symbols(int id,
               java.lang.String f)
Constructs a symbol, specifying the form and ID

Parameters:
id - the ID
f - the specified form.

Symbols

public Symbols(int id)
Constructs a symbol, specifying only the id. This constructor also creates a new form and is called from the speaker when it fails to produce an utterance.

Parameters:
id - the ID of the new Symbol
Method Detail

getForm

public java.lang.String getForm()
Returns:
the form of the symbol

getID

public int getID()
Returns:
the identity of the symbol

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the string representation of the symbol

equals

public boolean equals(java.lang.Object s)
Overrides:
equals in class java.lang.Object
Returns:
true if the symbols' forms are equal