Coverage Report - org.deri.wsmo4j.choreography.ChoreographyRI
 
Classes in this File Line Coverage Branch Coverage Complexity
ChoreographyRI
0%
0/12
N/A
1
 
 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;
 20  
 
 21  
 import org.wsmo.common.Identifier;
 22  
 import org.wsmo.service.choreography.rule.ChoreographyRules;
 23  
 import org.wsmo.service.signature.*;
 24  
 
 25  
 import com.ontotext.wsmo4j.common.EntityImpl;
 26  
 
 27  
 /**
 28  
  * Choreography Reference Implementation.
 29  
  * 
 30  
  * TODO: the accept method *probably* accepts the wrong type of Visitor (it
 31  
  * should rather be org.wsmo.service.Visitor)
 32  
  * 
 33  
  * <pre>
 34  
  *     Created on Jul 26, 2005
 35  
  *     Committed by $Author: vassil_momtchev $
 36  
  *     $Source$
 37  
  * </pre>
 38  
  * 
 39  
  * @author Thomas Haselwanter
 40  
  * @author James Scicluna
 41  
  * @author Vassil Momtchev
 42  
  * 
 43  
  * @version $Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
 44  
  */
 45  
 public class ChoreographyRI extends EntityImpl implements
 46  
         org.wsmo.service.choreography.Choreography {
 47  
 
 48  
     StateSignature signature;
 49  
 
 50  
     ChoreographyRules rules;
 51  
 
 52  
     /**
 53  
      * Initializes a default Choreography Implementation given the
 54  
      * <code>IRI</code>,<code>StateSignature</code> and <code>Rules</code>
 55  
      * objects.
 56  
      * 
 57  
      * @param id
 58  
      *            Identifier <code>IRI</code> of the choreography
 59  
      * @param signature
 60  
      *            <code>StateSignature</code> of the choreography
 61  
      * @param rules
 62  
      *            <code>Rules</code> container of the choreography
 63  
      */
 64  
     public ChoreographyRI(Identifier id, StateSignature signature, ChoreographyRules rules) {
 65  0
         super(id);
 66  0
         this.signature = signature;
 67  0
         this.rules = rules;
 68  0
     }
 69  
     
 70  
     public ChoreographyRI(Identifier id) {
 71  0
         super(id);
 72  0
     }
 73  
 
 74  
     /*
 75  
      * (non-Javadoc)
 76  
      * 
 77  
      * @see org.wsmo.service.choreography.Choreography#getStateSignature()
 78  
      */
 79  
     public StateSignature getStateSignature() {
 80  0
         return signature;
 81  
     }
 82  
     
 83  
     /*
 84  
      * (non-Javadoc)
 85  
      * 
 86  
      * @see org.wsmo.service.choreography.Choreography#setStateSignature(StateSignature stateSignature)
 87  
      */
 88  
     public void setStateSignature(StateSignature stateSignature) {
 89  0
         this.signature = stateSignature;
 90  0
     }
 91  
 
 92  
     /*
 93  
      * (non-Javadoc)
 94  
      * 
 95  
      * @see org.wsmo.service.choreography.Choreography#getRules()
 96  
      */
 97  
     public ChoreographyRules getRules() {
 98  0
         return this.rules;
 99  
     }
 100  
     
 101  
     /*
 102  
      * (non-Javadoc)
 103  
      * 
 104  
      * @see org.wsmo.service.choreography.Choreography#setRules(Rules rules)
 105  
      */
 106  
     public void setRules(ChoreographyRules rules) {
 107  0
         this.rules = rules;
 108  0
     }
 109  
 
 110  
 }