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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ontology
public Ontology()
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)