|
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This defines an interface for a relation in Algernon.
| Method Summary | |
List |
getArgumentTypes()
Returns a list of the argument types for this relation. |
int |
getMaximumCardinality()
Returns the maximum cardinality of this relation. |
int |
getMinimumCardinality()
Returns the minimum cardinality of this relation. |
boolean |
rangeIsSimpleType()
Returns true if the range is a non-frame type. |
void |
setDefaultValue(Object defaultValue)
Sets the default value of a template slot. |
void |
setInverseRelation(AlgernonRelation inverseRelation)
Sets the inverse relation of this relation. |
void |
setMaxCardinality(Integer maxCardinality)
Sets the maximum cardinality of the Relation. |
void |
setMinCardinality(Integer minCardinality)
Sets the minimum cardinality of the Relation. |
void |
setRange(AlgernonClass range)
Sets the range of the relation. |
void |
setRange(LispValue range)
Sets the range of a relation when it is a value type such as :INTEGER, instead of a class. |
| Methods inherited from interface org.algernon.kb.AlgernonFrame |
addRelationValue, deleteAllRelationValues, deleteRelationValue, deleteRelationValues, getDisplayName, getImplementation, getKB, getName, getOwnRelationValues, getParents, getPossibleRelationValues, getRelationValues, getRootClasses, getSuperclasses, hasParent, hasRootClass, hasSuperclass, setDisplayName, setName |
| Methods inherited from interface org.algernon.io.Displayable |
display |
| Method Detail |
public List getArgumentTypes()
throws AlgernonDataException
AlgernonDataExceptionpublic int getMinimumCardinality()
public int getMaximumCardinality()
public boolean rangeIsSimpleType()
public void setInverseRelation(AlgernonRelation inverseRelation)
inverseRelation -
public void setDefaultValue(Object defaultValue)
throws AlgernonDataException
defaultValue -
AlgernonDataExceptionpublic void setMaxCardinality(Integer maxCardinality)
maxCardinality - public void setMinCardinality(Integer minCardinality)
minCardinality - public void setRange(LispValue range)
range - the value type of the relation.public void setRange(AlgernonClass range)
range - a Class which is the range of the relation.
|
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||