org.deri.wsmo4j.choreography.signature
Class GroundedModeRI

java.lang.Object
  extended by org.deri.wsmo4j.choreography.signature.ModeRI
      extended by org.deri.wsmo4j.choreography.signature.GroundedModeRI
All Implemented Interfaces:
GroundedMode, Mode
Direct Known Subclasses:
InRI, OutRI, SharedRI

public abstract class GroundedModeRI
extends ModeRI
implements GroundedMode

Implements the common getGrounding method for the Grounded Modes

Version:
$Revision: 1936 $ $Date: 2007-02-22 15:37:46 +0200 (Thu, 22 Feb 2007) $
Author:
James Scicluna, Thomas Haselwanter Created on 26-Sep-2005 Committed by $Author: alex_simov $ $Source: /cvsroot/wsmo4j/ext/choreography/src/ri/org/deri/wsmo4j/choreography/signature/GroundedModeRI.java,v $,

Field Summary
protected  Set<Grounding> groundings
           
 
Constructor Summary
GroundedModeRI(org.omwg.ontology.Concept concept)
          Default constructor
GroundedModeRI(org.omwg.ontology.Concept concept, Set<Grounding> g)
           
GroundedModeRI(org.omwg.ontology.Relation relation)
           
GroundedModeRI(org.omwg.ontology.Relation relation, Set<Grounding> g)
           
 
Method Summary
 void addGrounding(Grounding g)
          Adds a grounding specification to the Grounded Mode
 Set<Grounding> getGrounding()
          Returns the grounding object entries of the Grounded mode
 void removeGrounding(Grounding g)
          Removes a grounding specification from the Grounded Mode
 
Methods inherited from class org.deri.wsmo4j.choreography.signature.ModeRI
getConcept, getRelation, isConcept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wsmo.service.signature.Mode
getConcept, getRelation, isConcept
 

Field Detail

groundings

protected Set<Grounding> groundings
Constructor Detail

GroundedModeRI

public GroundedModeRI(org.omwg.ontology.Concept concept)
Default constructor

Parameters:
concept - A Concept object with which the Grounded Mode is initialized

GroundedModeRI

public GroundedModeRI(org.omwg.ontology.Concept concept,
                      Set<Grounding> g)
Parameters:
iri - An IRI object defining the grounded mode concept/relation
g - A set of Grounding object definitions

GroundedModeRI

public GroundedModeRI(org.omwg.ontology.Relation relation)

GroundedModeRI

public GroundedModeRI(org.omwg.ontology.Relation relation,
                      Set<Grounding> g)
Method Detail

getGrounding

public Set<Grounding> getGrounding()
                            throws NotGroundedException
Description copied from interface: GroundedMode
Returns the grounding object entries of the Grounded mode

Specified by:
getGrounding in interface GroundedMode
Returns:
Set of Grounding objects and throws a NotGroundedException if no grounding is defined.
Throws:
NotGroundedException

addGrounding

public void addGrounding(Grounding g)
Description copied from interface: GroundedMode
Adds a grounding specification to the Grounded Mode

Specified by:
addGrounding in interface GroundedMode
Parameters:
g - A Grounding object to be added

removeGrounding

public void removeGrounding(Grounding g)
Description copied from interface: GroundedMode
Removes a grounding specification from the Grounded Mode

Specified by:
removeGrounding in interface GroundedMode
Parameters:
g - A Grounding object to be removed


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