| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| OrchestrationRI |
|
| 1.0;1 |
| 1 | /* | |
| 2 | wsmo4j extension - an Orchestration 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.orchestration; | |
| 20 | ||
| 21 | import org.wsmo.common.Identifier; | |
| 22 | import org.wsmo.service.orchestration.Orchestration; | |
| 23 | import org.wsmo.service.orchestration.rule.*; | |
| 24 | import org.wsmo.service.signature.*; | |
| 25 | ||
| 26 | import com.ontotext.wsmo4j.common.TopEntityImpl; | |
| 27 | ||
| 28 | /** | |
| 29 | * Interface or class description | |
| 30 | * | |
| 31 | * @author James Scicluna | |
| 32 | * | |
| 33 | * Created on 30-May-2006 Committed by $Author: vassil_momtchev $ | |
| 34 | * | |
| 35 | * $Source$, | |
| 36 | * @version $Revision: 1845 $ $Date: 2006-10-24 17:13:25 +0300 (Tue, 24 Oct 2006) $ | |
| 37 | */ | |
| 38 | ||
| 39 | public class OrchestrationRI extends TopEntityImpl implements Orchestration | |
| 40 | { | |
| 41 | ||
| 42 | StateSignature signature; | |
| 43 | ||
| 44 | OrchestrationRules rules; | |
| 45 | ||
| 46 | /** | |
| 47 | * Initializes the <code>Orchestration</code> object with the given | |
| 48 | * parameters. | |
| 49 | * | |
| 50 | * @param id | |
| 51 | * An <code>Identifier<code> for the <code>Orchestration</code> | |
| 52 | * @param signature The <code>StateSignature</code> of the <code>Orchestration</code> | |
| 53 | * @param rules The transition <code>Rules</code> of the <code>Orchestration</code> | |
| 54 | */ | |
| 55 | public OrchestrationRI(Identifier id, StateSignature signature, OrchestrationRules rules) | |
| 56 | { | |
| 57 | 0 | super(id); |
| 58 | 0 | this.signature = signature; |
| 59 | 0 | this.rules = rules; |
| 60 | 0 | } |
| 61 | ||
| 62 | /** | |
| 63 | * Default constructor of the <code>Orchestration</code> | |
| 64 | * | |
| 65 | * @param id | |
| 66 | * An <code>Identifier</code> of the <code>Orchestration</code> | |
| 67 | */ | |
| 68 | public OrchestrationRI(Identifier id) | |
| 69 | { | |
| 70 | 0 | super(id); |
| 71 | 0 | } |
| 72 | ||
| 73 | /* | |
| 74 | * (non-Javadoc) | |
| 75 | * | |
| 76 | * @see org.wsmo.service.orchestration.Orchestration#getStateSignature() | |
| 77 | */ | |
| 78 | public StateSignature getStateSignature() | |
| 79 | { | |
| 80 | 0 | return this.signature; |
| 81 | } | |
| 82 | ||
| 83 | /* | |
| 84 | * (non-Javadoc) | |
| 85 | * | |
| 86 | * @see org.wsmo.service.orchestration.Orchestration#setStateSignature(org.wsmo.service.choreography.signature.StateSignature) | |
| 87 | */ | |
| 88 | public void setStateSignature(StateSignature signature) | |
| 89 | { | |
| 90 | 0 | this.signature = signature; |
| 91 | 0 | } |
| 92 | ||
| 93 | /* | |
| 94 | * (non-Javadoc) | |
| 95 | * | |
| 96 | * @see org.wsmo.service.orchestration.Orchestration#getRules() | |
| 97 | */ | |
| 98 | public OrchestrationRules getRules() | |
| 99 | { | |
| 100 | 0 | return this.rules; |
| 101 | } | |
| 102 | ||
| 103 | /* | |
| 104 | * (non-Javadoc) | |
| 105 | * | |
| 106 | * @see org.wsmo.service.orchestration.Orchestration#setRules(org.wsmo.service.choreography.rule.Rules) | |
| 107 | */ | |
| 108 | public void setRules(OrchestrationRules rules) | |
| 109 | { | |
| 110 | 0 | this.rules = rules; |
| 111 | 0 | } |
| 112 | ||
| 113 | } |