Coverage Report - org.deri.wsmo4j.choreography.signature.ModeRI
 
Classes in this File Line Coverage Branch Coverage Complexity
ModeRI
0%
0/11
0%
0/2
1.4
 
 1  
 /*
 2  
  wsmo4j extension - a Choreography API and Reference Implementation
 3  
 
 4  
  Copyright (c) 2005, University of Innsbruck, Austria
 5  
 
 6  
  This library is free software; you can redistribute it and/or modify it under
 7  
  the terms of the GNU Lesser General Public License as published by the Free
 8  
  Software Foundation; either version 2.1 of the License, or (at your option)
 9  
  any later version.
 10  
  This library is distributed in the hope that it will be useful, but WITHOUT
 11  
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 12  
  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 13  
  details.
 14  
  You should have received a copy of the GNU Lesser General Public License along
 15  
  with this library; if not, write to the Free Software Foundation, Inc.,
 16  
  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 17  
  */
 18  
 
 19  
 package org.deri.wsmo4j.choreography.signature;
 20  
 
 21  
 import org.omwg.ontology.Concept;
 22  
 import org.omwg.ontology.Relation;
 23  
 import org.wsmo.service.signature.*;
 24  
 
 25  
 /**
 26  
  * Reference Implementation for the upper Mode interface.
 27  
  * 
 28  
  * <pre>
 29  
  *     Created on Jul 26, 2005
 30  
  *     Committed by $Author: vassil_momtchev $
 31  
  *     $Source$
 32  
  * </pre>
 33  
  * 
 34  
  * @author Thomas Haselwanter
 35  
  * @author James Scicluna
 36  
  * 
 37  
  * @version $Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
 38  
  */
 39  
 public abstract class ModeRI implements Mode {
 40  
 
 41  
     private Concept concept;
 42  
     private Relation relation;
 43  
 
 44  
     /**
 45  
      * @param concept
 46  
      *            A Concept object which is associated
 47  
      *            with the Mode
 48  
      */
 49  0
     public ModeRI(Concept concept) {
 50  0
         this.concept = concept;
 51  0
     }
 52  
     
 53  
     /**
 54  
      * Associates the mode with a relation
 55  
      * 
 56  
      * @param relation Relation object to be associated with the Mode
 57  
      */
 58  0
     public ModeRI(Relation relation){
 59  0
         this.relation = relation;
 60  0
     }
 61  
 
 62  
     /* (non-Javadoc)
 63  
      * @see org.wsmo.service.choreography.signature.Mode#getConcept()
 64  
      */
 65  
     public Concept getConcept() {
 66  0
         return this.concept;
 67  
     }
 68  
     
 69  
     /* (non-Javadoc)
 70  
      * @see org.wsmo.service.choreography.signature.Mode#getRelation()
 71  
      */
 72  
     public Relation getRelation(){
 73  0
         return this.relation;
 74  
     }
 75  
     
 76  
     /* (non-Javadoc)
 77  
      * @see org.wsmo.service.choreography.signature.Mode#isConcept()
 78  
      */
 79  
     public boolean isConcept(){
 80  0
         if(this.concept != null)
 81  0
             return true;
 82  0
         else return false;
 83  
     }
 84  
 }