org.omwg.ontology
Interface RelationInstance

All Superinterfaces:
Entity, OntologyElement

public interface RelationInstance
extends OntologyElement

Defines a WSMO relation instance

Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
Author:
not attributable
See Also:
Relation

Method Summary
 Value getParameterValue(byte pos)
          Returns the value of the specified paramter.
 Relation getRelation()
          Returns the relation this relation instance is an instance of.
 List<Value> listParameterValues()
          Returns a list of ParameterValues.
 void setParameterValue(byte pos, Value value)
          Sets the value of the specieifed Parameter to be the specified ParameterValue object.
 void setRelation(Relation memberOf)
          Sets the relation this relation instance is an instance of.
 
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

setRelation

void setRelation(Relation memberOf)
                 throws SynchronisationException,
                        InvalidModelException
Sets the relation this relation instance is an instance of.

Parameters:
memberOf - The Relation this relation instance is an instance of.
Throws:
SynchronisationException
InvalidModelException
See Also:
getRelation()

getRelation

Relation getRelation()
                     throws SynchronisationException
Returns the relation this relation instance is an instance of.

Returns:
The relation this relation instance is an instance of.
Throws:
SynchronisationException
See Also:
setRelation(org.omwg.ontology.Relation)

listParameterValues

List<Value> listParameterValues()
Returns a list of ParameterValues.

Returns:
A list of ParameterValues for all parameters set via setParameterValue.

getParameterValue

Value getParameterValue(byte pos)
                        throws SynchronisationException,
                               InvalidModelException
Returns the value of the specified paramter.

Parameters:
pos - The index of the parameter of interest.
Returns:
The value of the specified parameter.
Throws:
SynchronisationException
InvalidModelException
See Also:
setParameterValue(byte, Value)

setParameterValue

void setParameterValue(byte pos,
                       Value value)
                       throws SynchronisationException,
                              InvalidModelException
Sets the value of the specieifed Parameter to be the specified ParameterValue object.

Parameters:
pos - The index of the Parameter of interest.
value - The ParameterValue object to set the specified Parameter's value to.
Throws:
SynchronisationException
InvalidModelException
See Also:
getParameterValue(byte pos)


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.