jeops.engine
Class ObjectBase

java.lang.Object
  |
  +--jeops.engine.ObjectBase

public class ObjectBase
extends java.lang.Object

This class models the facts over which the inferenc engine will act. By facts we mean any object that is stored in this base - there's no notion of truth or falseness. A fact simply exists or doesn't.

Version:
0.03 28 Jun 1999 First version with comments in English.
Author:
Carlos Figueira Filho (csff@di.ufpe.br)

Constructor Summary
ObjectBase()
          Class constructor.
 
Method Summary
 void assert(java.lang.Object obj)
          Inserts a new object into this object base.
 void flush()
          Removes all objects of this base.
 java.util.Vector objects(java.lang.String classe)
          Returns the objects of the given class.
 void remove(java.lang.Object obj)
          Removes an object from this object base.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectBase

public ObjectBase()
Class constructor. Creates a new object base, initially empty.
Method Detail

assert

public void assert(java.lang.Object obj)
Inserts a new object into this object base.
Parameters:
obj - the object to be inserted.

flush

public void flush()
Removes all objects of this base.

objects

public java.util.Vector objects(java.lang.String classe)
Returns the objects of the given class.
Parameters:
classe - the name of the class whose objects are being removed from this base.
Returns:
all objects that are instances of the given class.

remove

public void remove(java.lang.Object obj)
Removes an object from this object base.
Parameters:
obj - the object to be removed from this base.