|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.logic.Action
com.agentfactory.cldc.Actuator
public abstract class Actuator
In AFME, agents act on their enviroment through the use of Actions. Actuators extend the Action class. The Actuator class includes methods to enable agents to adopt and retract beliefs. It stores an Actuator's identifier or trigger, which is used within a commitment rule. It also contains a reference to the AffectManager, which is used to enable the Actuator to interact with modules and services.
| Constructor Summary | |
|---|---|
Actuator(AffectManager manager,
java.lang.String id)
Constructs an actuator that enables an agent to interact with its environment |
|
| Method Summary | |
|---|---|
void |
adoptBelief(FOS bel)
Causes the agent to adopt the specified first order structure belief. |
void |
adoptBelief(java.lang.String string)
Causes the agent to adopt the belief represented by the specified string. |
void |
register(java.util.Hashtable table)
This method is called by the agent platform to register the actuator with the platform. |
void |
retractBelief(FOS bel)
Causes the agent to drop the specified first order structure belief. |
| Methods inherited from class com.agentfactory.cldc.logic.Action |
|---|
act |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Actuator(AffectManager manager,
java.lang.String id)
manager - the affect manager for the agent.id - a string representation of the trigger for the actuator.| Method Detail |
|---|
public void register(java.util.Hashtable table)
table - the hash table that the actuator is added to.public void adoptBelief(FOS bel)
adoptBelief(FOS).
The belief is not added to
the belief set during the current cycle. The reason for this is that commitment
execution is nondeterministic. That is, the order in which commitments
are fired in the current cycle is irrelevant at a logical level
and will not have a consequence on the resolution-based resaoning
process for determining the desired states in the current cycle. Beliefs
added using this method will only be added to the agents current belief
set after all of the commitments in the current cycle have been executed.
bel - the belief to be adopted.public void adoptBelief(java.lang.String string)
string - the string representation of the belief to be adopted.public void retractBelief(FOS bel)
adoptBelief(FOS).
The belief is not retracted until the current control process
has finished determining the desired states. If the agent does not
contain the specified belief, no error is thrown.
bel - the belief to be dropped.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||