|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jeops.ObjectBase
This class models the facts over which the inference 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.
| Field Summary | |
private java.util.Map |
objects
The class/objects mapping. |
private java.util.Map |
subClasses
The superclasses/subclasses mapping. |
| Constructor Summary | |
ObjectBase()
Class constructor. |
|
| Method Summary | |
boolean |
assert(java.lang.Object obj)
Inserts a new object into this object base. |
void |
flush()
Removes all objects of this base. |
private void |
insertImplementedInterfaces(java.lang.Class interfaceClass,
java.lang.String className)
Inserts a pairs |
private void |
insertInheritancePair(java.lang.String superclass,
java.lang.String subclass)
Inserts a new pair |
java.util.Vector |
objects(java.lang.String className)
Returns the objects of the given class. |
boolean |
remove(java.lang.Object obj)
Removes an object from this object base. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.util.Map subClasses
private java.util.Map objects
| Constructor Detail |
public ObjectBase()
| Method Detail |
public boolean assert(java.lang.Object obj)
obj - the object to be inserted.true if the insertion was successful
(i.e., the object wasn't in the base;
false otherwise.
private void insertImplementedInterfaces(java.lang.Class interfaceClass,
java.lang.String className)
interfaceClass - the class object representing the interface.className - the name of the implementing class.
private void insertInheritancePair(java.lang.String superclass,
java.lang.String subclass)
superclass - the name of the superclass.subclass - the name of the subclass.public void flush()
public java.util.Vector objects(java.lang.String className)
className - the name of the class whose objects are
being removed from this base.public boolean remove(java.lang.Object obj)
obj - the object to be removed from this base.true if the remotion was successful
(i.e., the given object belonged to this base);
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||