org.deri.wsmo4j.choreography.signature
Class ModeRI

java.lang.Object
  extended by org.deri.wsmo4j.choreography.signature.ModeRI
All Implemented Interfaces:
Mode
Direct Known Subclasses:
ControlledRI, GroundedModeRI, StaticRI

public abstract class ModeRI
extends Object
implements Mode

Reference Implementation for the upper Mode interface.

     Created on Jul 26, 2005
     Committed by $Author: vassil_momtchev $
     $Source$
 

Version:
$Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
Author:
Thomas Haselwanter, James Scicluna

Constructor Summary
ModeRI(org.omwg.ontology.Concept concept)
           
ModeRI(org.omwg.ontology.Relation relation)
          Associates the mode with a relation
 
Method Summary
 org.omwg.ontology.Concept getConcept()
          Returns the Concept which is associated with the mode
 org.omwg.ontology.Relation getRelation()
          Returns the Relation which is associated with the mode
 boolean isConcept()
          Determines whether the mode is associated with a concept (true if yes, false if it's a relation)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeRI

public ModeRI(org.omwg.ontology.Concept concept)
Parameters:
concept - A Concept object which is associated with the Mode

ModeRI

public ModeRI(org.omwg.ontology.Relation relation)
Associates the mode with a relation

Parameters:
relation - Relation object to be associated with the Mode
Method Detail

getConcept

public org.omwg.ontology.Concept getConcept()
Description copied from interface: Mode
Returns the Concept which is associated with the mode

Specified by:
getConcept in interface Mode
Returns:
A Concept object associated with the Mode

getRelation

public org.omwg.ontology.Relation getRelation()
Description copied from interface: Mode
Returns the Relation which is associated with the mode

Specified by:
getRelation in interface Mode
Returns:
A Relation object associated with the Mode

isConcept

public boolean isConcept()
Description copied from interface: Mode
Determines whether the mode is associated with a concept (true if yes, false if it's a relation)

Specified by:
isConcept in interface Mode
Returns:


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