org.wsmo.service.rule
Interface Update

All Superinterfaces:
ChoreographyRule, Rule, UpdateRule
All Known Implementing Classes:
UpdateRI

public interface Update
extends UpdateRule

An update may have two forms: - update(oldFact => newFact). - update(newFact). In the first form, the oldFact object must be defined. In the second form, this must not be defined.

     Created on Jul 26, 2005
     Committed by $Author: vassil_momtchev $
     $Source$
 

Version:
$Revision: 1844 $ $Date: 2006-10-24 17:11:48 +0300 (Tue, 24 Oct 2006) $
Author:
James Scicluna, Thomas Haselwanter, Holger Lausen

Method Summary
 CompoundFact getNewFact()
          Returns the new fact defined by the update rule.
 CompoundFact getOldFact()
          Returns the old fact defined by the update rule.
 void setNewFact(CompoundFact newFact)
          Sets the new fact associated with the update rule.
 void setOldFact(CompoundFact oldFact)
          Sets the old fact associated with the update rule.
 
Methods inherited from interface org.wsmo.service.rule.UpdateRule
getFact, setFact
 
Methods inherited from interface org.wsmo.service.rule.Rule
accept, toString
 

Method Detail

getNewFact

CompoundFact getNewFact()
Returns the new fact defined by the update rule.

Returns:
A CompoundFact object representing the new fact to be added to the knowledge base

setNewFact

void setNewFact(CompoundFact newFact)
Sets the new fact associated with the update rule.

Parameters:
newFact - A CompoundFact object representing the new fact to be added to the knowledge base

getOldFact

CompoundFact getOldFact()
Returns the old fact defined by the update rule.

Returns:
A CompoundFact object representing the old fact to be deleted from the knowledge base

setOldFact

void setOldFact(CompoundFact oldFact)
Sets the old fact associated with the update rule.

Parameters:
oldFact - A CompoundFact object representing the old fact to be deleted from the knowledge base


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.