|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Relation
Defines the requirements for an object that represents a WSMO relation.
RelationInstance| Method Summary | |
|---|---|
void |
addRelationInstance(RelationInstance relInst)
Adds a new RelationInstance to the set of instances of this relation The relation instance will also set this relation as the relation it is an instance of |
void |
addSubRelation(Relation subRel)
Adds a new relation to the set of sub-relations of this relation The sub-relation will also add this relation to the list of its super-relations |
void |
addSuperRelation(Relation superRel)
Adds a new relation to the set of super-relation of this relation The super-relation will also add this relation to the list of its sub-relations |
Parameter |
createParameter(byte pos)
Create and add a parameterto this relation's list of parameters. |
Parameter |
getParameter(byte pos)
retrieve the parameter at a given position Note: the parameter must already exist (e.g. |
java.util.List |
listParameters()
Returns a list of this relation's parameters |
java.util.Set |
listRelationInstances()
Returns a list of this relation's instances |
java.util.Set |
listSubRelations()
Lists the sub-relations of this relation |
java.util.Set |
listSuperRelations()
Lists the super-relations of this relation |
void |
removeParameter(byte pos)
Removes a parameter from this relation's list of attributes. |
void |
removeParameter(Parameter param)
Removes a parameter from this relation's list of attributes. |
void |
removeRelationInstance(RelationInstance relInst)
Removes a relation instance from the set of instances of this relation The relation instance will also set null for as the relation it is an instance of |
void |
removeSubRelation(Relation subRel)
Removes a relation from the set of sub-relations of this relation The sub-relation will also remove this relation from the list of its super-relations |
void |
removeSuperRelation(Relation superRel)
Removes a relation from the set of super-relations of this relation The super-relation will also remove this relation from the list of its sub-relations |
| Methods inherited from interface org.omwg.ontology.OntologyElement |
|---|
getOntology, setOntology |
| Methods inherited from interface org.wsmo.common.Entity |
|---|
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
| Method Detail |
|---|
void addSuperRelation(Relation superRel)
throws SynchronisationException,
InvalidModelException
superRel - The new super-relation to be added.
SynchronisationException
InvalidModelExceptionremoveSuperRelation(Relation superRel)
void removeSuperRelation(Relation superRel)
throws SynchronisationException,
InvalidModelException
superRel - The super-relation to be removed
SynchronisationException
InvalidModelException
java.util.Set listSuperRelations()
throws SynchronisationException
SynchronisationException
void addSubRelation(Relation subRel)
throws SynchronisationException,
InvalidModelException
subRel - The new sub-relation to be added.
SynchronisationException
InvalidModelExceptionremoveSubRelation(Relation subRel)
void removeSubRelation(Relation subRel)
throws SynchronisationException,
InvalidModelException
subRel - The sub-concept to be removed
SynchronisationException
InvalidModelException
java.util.Set listSubRelations()
throws SynchronisationException
SynchronisationException
Parameter createParameter(byte pos)
throws SynchronisationException,
InvalidModelException
pos - The position of the new parameter
SynchronisationException
InvalidModelExceptionremoveParameter(Parameter param),
removeParameter(byte pos),
getParameter(byte pos)
Parameter getParameter(byte pos)
throws SynchronisationException
pos - The position of the parameter in interest
SynchronisationExceptioncreateParameter(byte pos)
void removeParameter(Parameter param)
throws SynchronisationException,
InvalidModelException
param - The parameter to be removed
SynchronisationException
InvalidModelExceptionremoveParameter(byte pos)
void removeParameter(byte pos)
throws SynchronisationException,
InvalidModelException
pos - The position of the parameter to be removed
SynchronisationException
InvalidModelExceptionremoveParameter(Parameter param)
java.util.List listParameters()
throws SynchronisationException
SynchronisationExceptionParameter
void addRelationInstance(RelationInstance relInst)
throws SynchronisationException,
InvalidModelException
relInst - The new instance to be added.
SynchronisationException
InvalidModelExceptionremoveRelationInstance(RelationInstance relInst),
RelationInstance.setRelation(Relation memberOf)
void removeRelationInstance(RelationInstance relInst)
throws SynchronisationException,
InvalidModelException
relInst - The instance to be removed
SynchronisationException
InvalidModelExceptionRelationInstance.setRelation(Relation memberOf)
java.util.Set listRelationInstances()
throws SynchronisationException
SynchronisationExceptionRelationInstance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||