|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jatha.dynatype.StandardLispValue
org.algernon.kb.okbc.protege.AlgernonProtegeObject
org.algernon.kb.okbc.protege.AlgernonProtegeFrame
This defines an interface for an AlgernonKB.
Field Summary | |
protected Instance |
m_frame
|
protected AlgernonProtegeKB |
m_kb
|
Fields inherited from class org.algernon.kb.okbc.protege.AlgernonProtegeObject |
f_algy |
Fields inherited from class org.jatha.dynatype.StandardLispValue |
f_lisp |
Constructor Summary | |
AlgernonProtegeFrame(AlgernonProtegeKB kb)
|
|
AlgernonProtegeFrame(AlgernonProtegeKB kb,
Instance frame)
|
Method Summary | |
void |
addRelationValue(AlgernonRelation relation,
Object value)
Adds the given value to the relation on this Frame. |
void |
deleteAllRelationValues(AlgernonRelation relation)
Deletes all values on the given slot for this frame. |
void |
deleteRelationValue(AlgernonRelation relation,
Object value)
Deletes one value of a relation on this frame. |
void |
deleteRelationValues(AlgernonRelation relation,
Collection values)
Calls deleteRelationValue for each value in the Collection. |
String |
display(PrintStream out)
implements the Displayable interface |
String |
getDisplayName()
Returns the name of this Frame. |
Object |
getImplementation()
Returns the KBMS-specific object implementing this interface. |
AlgernonKB |
getKB()
Returns the KB this Frame belongs to. |
String |
getName()
Returns the name of this Frame. |
Collection |
getOwnRelationValues(AlgernonRelation slot)
Returns a collection of the values in the given slot. |
List |
getParents()
Returns a List of the parents of this frame. |
Collection |
getPossibleRelationValues(AlgernonRelation relation)
Returns the list of existing instances that could fill the given relation on this frame. |
Collection |
getRelationValues(AlgernonRelation relation)
Returns the relation values. |
Collection |
getRootClasses()
Returns a collection of root classes of this class. |
Collection |
getSuperclasses()
Returns the direct superclass(es) of a class or the direct class(es) of an instance. |
boolean |
hasParent(AlgernonFrame parent)
Returns true if the argument is a parent of this frame. |
boolean |
hasRootClass(AlgernonClass root)
Returns true if root is a root class of this class. |
boolean |
hasSuperclass(AlgernonClass theClass)
Returns true if this class includes superclass
as one of its superclasses, direct or indirect. |
void |
setDisplayName(String newName)
Sets this frame's display name (that is, a pretty name) to the given string. |
void |
setName(String newName)
Sets the name (:NAME) of this frame. |
String |
toString()
|
Methods inherited from class org.algernon.kb.okbc.protege.AlgernonProtegeObject |
getAlgernon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Instance m_frame
protected AlgernonProtegeKB m_kb
Constructor Detail |
public AlgernonProtegeFrame(AlgernonProtegeKB kb, Instance frame)
public AlgernonProtegeFrame(AlgernonProtegeKB kb)
Method Detail |
public String toString()
toString
in interface LispValue
toString
in class AlgernonProtegeObject
public String display(PrintStream out)
display
in interface Displayable
public String getName()
getName
in interface AlgernonFrame
getName
in class AlgernonProtegeObject
public void setName(String newName)
setName
in interface AlgernonFrame
public String getDisplayName() throws AlgernonException
getDisplayName
in interface AlgernonFrame
AlgernonException
public AlgernonKB getKB()
getKB
in interface AlgernonFrame
public Object getImplementation()
getImplementation
in interface AlgernonFrame
public Collection getOwnRelationValues(AlgernonRelation slot) throws AlgernonException
getOwnRelationValues
in interface AlgernonFrame
AlgernonException
public void addRelationValue(AlgernonRelation relation, Object value)
addRelationValue
in interface AlgernonFrame
public Collection getRelationValues(AlgernonRelation relation) throws AlgernonException
getRelationValues
in interface AlgernonFrame
AlgernonException
public Collection getPossibleRelationValues(AlgernonRelation relation) throws AlgernonDataException
getPossibleRelationValues
in interface AlgernonFrame
AlgernonDataException
public List getParents()
getParents
in interface AlgernonFrame
public Collection getSuperclasses()
getSuperclasses
in interface AlgernonFrame
public void deleteRelationValue(AlgernonRelation relation, Object value)
deleteRelationValue
in interface AlgernonFrame
public void deleteRelationValues(AlgernonRelation relation, Collection values)
deleteRelationValues
in interface AlgernonFrame
deleteRelationValue(org.algernon.kb.AlgernonRelation, java.lang.Object)
public void deleteAllRelationValues(AlgernonRelation relation)
deleteAllRelationValues
in interface AlgernonFrame
deleteRelationValue(org.algernon.kb.AlgernonRelation, java.lang.Object)
public boolean hasSuperclass(AlgernonClass theClass)
superclass
as one of its superclasses, direct or indirect.
hasSuperclass
in interface AlgernonFrame
theClass
- the superclass to check
public Collection getRootClasses()
getRootClasses
in interface AlgernonFrame
public boolean hasRootClass(AlgernonClass root)
root
is a root class of this class.
hasRootClass
in interface AlgernonFrame
public boolean hasParent(AlgernonFrame parent)
hasParent
in interface AlgernonFrame
public void setDisplayName(String newName) throws AlgernonException
setDisplayName
in interface AlgernonFrame
newName
-
AlgernonException
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |