|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deri.wsmo4j.rule.AbstractUpdateRule org.deri.wsmo4j.rule.UpdateRI
public class UpdateRI
Reference implementation for the Update rule.
Created on Jul 26, 2005 Committed by $Author: vassil_momtchev $ $Source$
Field Summary | |
---|---|
protected CompoundFact |
oldFact
|
Fields inherited from class org.deri.wsmo4j.rule.AbstractUpdateRule |
---|
fact |
Constructor Summary | |
---|---|
UpdateRI(CompoundFact newFact)
|
|
UpdateRI(CompoundFact newFact,
CompoundFact oldFact)
|
Method Summary | |
---|---|
void |
accept(Visitor visitor)
Acceptor method for the Visitor. |
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. |
String |
toString()
|
String |
toString(org.wsmo.common.TopEntity te)
Returns a string representation of the Rule. |
Methods inherited from class org.deri.wsmo4j.rule.AbstractUpdateRule |
---|
getFact, setFact |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.wsmo.service.rule.UpdateRule |
---|
getFact, setFact |
Field Detail |
---|
protected CompoundFact oldFact
Constructor Detail |
---|
public UpdateRI(CompoundFact newFact)
public UpdateRI(CompoundFact newFact, CompoundFact oldFact) throws org.wsmo.common.exception.InvalidModelException
newFact
- A CompoundFact object defining the new fact of the update
rule.oldFact
- A CompoundFact object defining the old fact of the update
rule.
org.wsmo.common.exception.InvalidModelException
Method Detail |
---|
public void setOldFact(CompoundFact oldFact)
Update
setOldFact
in interface Update
oldFact
- A CompoundFact object representing the old fact to be deleted
from the knowledge basepublic CompoundFact getOldFact()
Update
getOldFact
in interface Update
public void setNewFact(CompoundFact newFact)
Update
setNewFact
in interface Update
newFact
- A CompoundFact object representing the new fact to be added to
the knowledge basepublic CompoundFact getNewFact()
Update
getNewFact
in interface Update
public void accept(Visitor visitor)
Rule
accept
in interface Rule
visitor
- Rule-Visitor objectpublic String toString(org.wsmo.common.TopEntity te)
Rule
toString
in interface Rule
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |