public class RandomLotteryAgent extends AbstractLotteryAgent
Modifier and Type | Field and Description |
---|---|
private UtilityFunction |
util
The utility function.
|
semantics, theory
Constructor and Description |
---|
RandomLotteryAgent(java.lang.String name,
DungTheory theory,
UtilityFunction util,
Semantics semantics)
Creates a new agent with the given name, theory, and semantics
|
Modifier and Type | Method and Description |
---|---|
double |
getUtility(DungTheory theory,
Semantics semantics)
Returns the utility of the agent wrt.
|
ExecutableDungTheory |
next(java.util.Collection<? extends Perceivable> percepts)
Determines the next action of this agent wrt.
|
getSemantics, getTheory
private UtilityFunction util
public RandomLotteryAgent(java.lang.String name, DungTheory theory, UtilityFunction util, Semantics semantics)
name
- theory
- semantics
- public ExecutableDungTheory next(java.util.Collection<? extends Perceivable> percepts)
Agent
next
in class AbstractLotteryAgent
percepts
- a collection of percepts.public double getUtility(DungTheory theory, Semantics semantics)
AbstractLotteryAgent
getUtility
in class AbstractLotteryAgent
theory
- some theorysemantics
- some semantics