Package nl.uu.cs.aplib.mainConcepts
Class Deliberation
java.lang.Object
nl.uu.cs.aplib.mainConcepts.Deliberation
This class implements a deliberation process for agents. Agent deliberation
in aplib is defined as the process of making a choice of which action an
agent should execute, if there are multiple actions enabled on the agent's
current state. The agent will then invoke the method
deliberate(SimpleState, List)
of this class, passing to it the set
of currently enabled actions. The method will the make the choice. This root
implementation will just choose one randomly. You need to write your own
subclass if you want to have a more sophisticated deliberation process.- Author:
- wish
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeliberate(SimpleState currentstate, List<Tactic.PrimitiveTactic> candidates)
-
Field Details
-
rndseed
protected long rndseed -
rnd
-
-
Constructor Details
-
Deliberation
public Deliberation()
-
-
Method Details
-
deliberate
public Tactic.PrimitiveTactic deliberate(SimpleState currentstate, List<Tactic.PrimitiveTactic> candidates)
-