| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AbstractUpdateRule | 
 | 
 | 1.0;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.rule; | |
| 20 | ||
| 21 |  import org.wsmo.service.rule.*; | |
| 22 | ||
| 23 |  /** | |
| 24 |   * Implements common functionality for Update Rules. | |
| 25 |   *  | |
| 26 |   * <pre> | |
| 27 |   *   Created on Sep 8, 2005 | |
| 28 |   *   Committed by $Author: vassil_momtchev $ | |
| 29 |   *   $Source$ | |
| 30 |   * </pre> | |
| 31 |   *  | |
| 32 |   * @author James Scicluna | |
| 33 |   * @author Thomas Haselwanter | |
| 34 |   * @author Holger Lausen | |
| 35 |   *  | |
| 36 |   * @version $Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $ | |
| 37 |   */ | |
| 38 | public abstract class AbstractUpdateRule implements UpdateRule { | |
| 39 | ||
| 40 |      protected CompoundFact fact; | |
| 41 | ||
| 42 |      /** | |
| 43 |       * Default constructor for Update Rules | |
| 44 |       */ | |
| 45 | 0 |      public AbstractUpdateRule() { | 
| 46 | 0 |      } | 
| 47 | ||
| 48 |      /** | |
| 49 |       * @param fact | |
| 50 |       *            A CompoundFact object denoting the fact of the rule. | |
| 51 |       */ | |
| 52 | 0 |      public AbstractUpdateRule(CompoundFact fact) { | 
| 53 | 0 |          this.fact = fact; | 
| 54 | 0 |      } | 
| 55 | ||
| 56 |      /* | |
| 57 |       * (non-Javadoc) | |
| 58 |       *  | |
| 59 |       * @see org.wsmo.service.choreography.rule.UpdateRule#getFact() | |
| 60 |       */ | |
| 61 |      public CompoundFact getFact() { | |
| 62 | 0 |          return this.fact; | 
| 63 | } | |
| 64 | ||
| 65 |      /* | |
| 66 |       * (non-Javadoc) | |
| 67 |       *  | |
| 68 |       * @see org.wsmo.service.choreography.rule.UpdateRule#setFact(org.wsmo.service.choreography.rule.CompoundFact) | |
| 69 |       */ | |
| 70 | public void setFact(CompoundFact fact) { | |
| 71 | 0 |          this.fact = fact; | 
| 72 | 0 |      } | 
| 73 | } |