|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectzeus.rete.action.ReteAction
superclass of the class that is called by all the ReteEngine handlers. There is one abstract method here - executeAction (Action,Info) that needs to be implemented
| Field Summary | |
protected ConflictSet |
conflictHandler
conflictHandler is the reference to the zeus.rete.ConflictHandler object which (I think) decides which rule or action to fire next |
protected AgentContext |
context
context is stored by the superclass constructor for access by inhereted classes |
protected ReteEngine |
engine
engine is the reference to the ReteEngine, in some uses of the zeus.ReteEngine it is anticipated that no agent will be present |
protected OntologyDb |
ontologyDb
ontologyDb is the reference to the ontology we are working in, again, this package protected slot is provided because we need to remember to use case for Rete where it is not in an agent persay. |
| Constructor Summary | |
ReteAction()
|
|
| Method Summary | |
abstract void |
executeAction(Action a,
Info info)
executeAction is a abstract method to be defined by implementing classes. |
OntologyDb |
getOntologyDb()
return the ontology ref, if the ontologyDb slot is null then get the current agent ontology, otherwise get the current ontology Issues: ------ If the context object and the rete object are both null should this then throw an exception - nice, but makes harder to use... |
java.lang.String |
getServiceDescription(java.lang.String language)
instantiated to return false, override this to produce service descriptions for rules |
void |
setActuators(ConflictSet conflictHandler,
AgentContext context)
this method is used to provide the Action objects with "actuators", by which I mean some object references that allow the Action implementor to actually do something that effects the state of the agent |
void |
setActuators(ConflictSet conflictHandler,
ReteEngine engine)
this method is used to provide the Action objects with "actuators", by which I mean some object references that allow the Action implementor to actually do something. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected AgentContext context
protected ReteEngine engine
protected ConflictSet conflictHandler
protected OntologyDb ontologyDb
getOntology()| Constructor Detail |
public ReteAction()
| Method Detail |
public void setActuators(ConflictSet conflictHandler,
AgentContext context)
setActuators in interface BasicActioncontext - - our old friend the AgentContext interface gives us a reference
to the class which is implementing the agent's body.conflictHandler - - reference to the ConflictSet object
public void setActuators(ConflictSet conflictHandler,
ReteEngine engine)
setActuators in interface BasicActionengine - - the ReteEngine that we are usingconflictHandler - - reference to the ConflictSet objectpublic OntologyDb getOntologyDb()
Issues:
------
If the context object and the rete object are both null should this then
throw an exception - nice, but makes harder to use...
getOntologyDb in interface BasicAction
public abstract void executeAction(Action a,
Info info)
This method will be called when the rete algorithm decides that this is the right action to fire right now.
executeAction in interface BasicActionpublic java.lang.String getServiceDescription(java.lang.String language)
getServiceDescription in interface BasicAction
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||