LGames
Class Ontology

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

public class Ontology
extends java.lang.Object

Implements the managing of the agent's ontology that stores the list of meanings these agents have.

Copyright 2002 Paul Vogt


Constructor Summary
Ontology()
           
 
Method Summary
 Meaning getMeaning(int i)
           
 int getMeaningSize()
          returns the size of the ontology
 Meaning newCategory(double[] category)
          adds a new category to the list of meanings.
 void print()
           
 void print(java.io.PrintWriter outfile)
           
 void printLex(java.io.PrintWriter outfile)
           
 void removeMeaning(int i)
          removes the meaning at the i-th place in the ontology.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ontology

public Ontology()
Method Detail

newCategory

public Meaning newCategory(double[] category)
adds a new category to the list of meanings.
Parameters:
category - the category to be added.
Returns:
the new meaning.

getMeaningSize

public int getMeaningSize()
returns the size of the ontology

getMeaning

public Meaning getMeaning(int i)
Returns:
the meaning at the i-th place in the ontology, if it exists, it returns null otherwise.

removeMeaning

public void removeMeaning(int i)
removes the meaning at the i-th place in the ontology.

print

public void print()

print

public void print(java.io.PrintWriter outfile)

printLex

public void printLex(java.io.PrintWriter outfile)