Clover coverage report - bexee - 0.1
Coverage timestamp: Do Dez 16 2004 13:24:06 CET
file stats: LOC: 92   Methods: 10
NCLOC: 43   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
SequenceImpl.java - 81.8% 80% 81%
coverage coverage
 1   
 /*
 2   
  * $Id: SequenceImpl.java,v 1.1 2004/12/15 14:18:13 patforna Exp $
 3   
  *
 4   
  * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
 5   
  * Berne University of Applied Sciences
 6   
  * School of Engineering and Information Technology
 7   
  * All rights reserved.
 8   
  */
 9   
 package bexee.model.activity.impl;
 10   
 
 11   
 import java.util.ArrayList;
 12   
 import java.util.List;
 13   
 
 14   
 import bexee.core.ProcessController;
 15   
 import bexee.core.ProcessInstance;
 16   
 import bexee.model.BPELElementVisitor;
 17   
 import bexee.model.StandardAttributes;
 18   
 import bexee.model.activity.Activity;
 19   
 import bexee.model.activity.Sequence;
 20   
 
 21   
 /**
 22   
  * Default implementation of the <code>Sequence</code> activity.
 23   
  * 
 24   
  * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:13 $
 25   
  * @author Patric Fornasier
 26   
  * @author Pawel Kowalski
 27   
  */
 28   
 public class SequenceImpl extends AbstractActivity implements Sequence {
 29   
 
 30   
     private List activities = null;
 31   
 
 32   
     //**************************************************/
 33   
     // c'tors
 34   
     //**************************************************/
 35   
 
 36  36
     public SequenceImpl() {
 37  36
         this(null);
 38   
     }
 39   
 
 40   
     /**
 41   
      * Create a Sequence Activity with standard BPEL activity attributes.
 42   
      * 
 43   
      * @param standardAttributes
 44   
      */
 45  36
     public SequenceImpl(StandardAttributes standardAttributes) {
 46  36
         super(standardAttributes);
 47   
 
 48  36
         init();
 49   
     }
 50   
 
 51  36
     private void init() {
 52  36
         activities = new ArrayList();
 53   
     }
 54   
 
 55   
     //**************************************************/
 56   
     // bexee.model.activity.Sequence
 57   
     //**************************************************/
 58   
 
 59  120
     public void activity(Activity activity) {
 60  120
         addActivity(activity);
 61   
     }
 62   
 
 63  132
     public void addActivity(Activity activity) {
 64  132
         activities.add(activity);
 65   
     }
 66   
 
 67  0
     public void addActivity(int position, Activity activity) {
 68  0
         activities.add(position, activity);
 69   
     }
 70   
 
 71  0
     public void setActivities(List activities) {
 72  0
         this.activities = activities;
 73   
     }
 74   
 
 75  48
     public List getActivities() {
 76  48
         return activities;
 77   
     }
 78   
 
 79   
     //**************************************************/
 80   
     // bexee.core.BPELElement
 81   
     //**************************************************/
 82   
 
 83  6
     public void accept(ProcessController controller, ProcessInstance instance)
 84   
             throws Exception {
 85  6
         controller.process(this, instance);
 86   
     }
 87   
 
 88  36
     public void accept(BPELElementVisitor elementVisitor) {
 89  36
         elementVisitor.visit(this);
 90   
     }
 91   
 
 92   
 }