Coverage Report - org.deri.wsmo4j.orchestration.rule.OrchestrationAchieveGoalRI
 
Classes in this File Line Coverage Branch Coverage Complexity
OrchestrationAchieveGoalRI
0%
0/9
N/A
0
 
 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.orchestration.rule;
 20  
 
 21  
 import org.deri.wsmo4j.io.serializer.wsml.VisitorSerializeWSMLTransitionRules;
 22  
 import org.deri.wsmo4j.rule.PerformRI;
 23  
 import org.wsmo.common.IRI;
 24  
 import org.wsmo.common.TopEntity;
 25  
 import org.wsmo.service.Goal;
 26  
 import org.wsmo.service.orchestration.rule.OrchestrationAchieveGoal;
 27  
 import org.wsmo.service.rule.Visitor;
 28  
 
 29  
 /**
 30  
  * Interface or class description
 31  
  *
 32  
  * @author James Scicluna
 33  
  * @author Thomas Haselwanter
 34  
  * @author Vassil Momtchev
 35  
  *
 36  
  * Created on 02-Feb-2006
 37  
  * Committed by $Author: morcen $
 38  
  *
 39  
  * $Source$,
 40  
  * @version $Revision: 1949 $ $Date: 2007-04-02 16:05:18 +0300 (Mon, 02 Apr 2007) $
 41  
  */
 42  
 
 43  
 public class OrchestrationAchieveGoalRI extends PerformRI implements OrchestrationAchieveGoal {
 44  
 
 45  
         private Goal goal;
 46  
         
 47  
         public OrchestrationAchieveGoalRI(IRI performance, Goal goal) {
 48  0
                 super(performance);
 49  0
                 this.goal = goal;
 50  0
         }
 51  
 
 52  
         @Override
 53  
         public void accept(Visitor visitor) {
 54  0
                 visitor.visitOrchestrationAchieveGoal(this);
 55  0
         }
 56  
         
 57  
     /* (non-Javadoc)
 58  
      * @see org.wsmo.service.choreography.rule.Rule#toString(org.wsmo.common.TopEntity)
 59  
      */
 60  
         public String toString(TopEntity te) {
 61  0
         VisitorSerializeWSMLTransitionRules visitor = new VisitorSerializeWSMLTransitionRules(te);
 62  0
         visitor.visitOrchestrationAchieveGoal(this);
 63  0
         return visitor.getSerializedObject();
 64  
     }
 65  
 
 66  
         public Goal getGoal() {
 67  0
                 return goal;
 68  
         }
 69  
         
 70  
 }