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.wsmo.service.rule; 20 21 import org.wsmo.common.exception.InvalidModelException; 22 23 /** 24 * An <code>UpdateRule<code> is an unconditional rule that specificies a certain 25 * kind of state update. The indent of this interface is to provide 26 * uniform, generic access to all kind of <code>UpdateRules</code>. 27 * 28 * <pre> 29 * Created on Jul 26, 2005 30 * Committed by $Author: vassil_momtchev $ 31 * $Source$ 32 * </pre> 33 * 34 * @author James Scicluna 35 * @author Thomas Haselwanter 36 * @author Holger Lausen 37 * 38 * @version $Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $ 39 */ 40 public interface UpdateRule extends ChoreographyRule { 41 42 /** 43 * Returns the compound fact defined by an update rule 44 * 45 * @return A CompoundFact object 46 */ 47 public CompoundFact getFact(); 48 49 /** 50 * Sets the fact of the update rule 51 * 52 * @param fact 53 * A CompoundFact object to defining the fact of the update rule 54 */ 55 public void setFact(CompoundFact fact) throws InvalidModelException; 56 57 }