public class UtilityBasedLotteryAgent extends AbstractLotteryAgent
| Modifier and Type | Field and Description |
|---|---|
private UtilityFunction |
util
The utility function.
|
semantics, theory| Constructor and Description |
|---|
UtilityBasedLotteryAgent(java.lang.String name,
DungTheory theory,
UtilityFunction util,
int semantics) |
| Modifier and Type | Method and Description |
|---|---|
double |
getUtility(DungTheory theory,
int 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, getTheoryprivate UtilityFunction util
public UtilityBasedLotteryAgent(java.lang.String name,
DungTheory theory,
UtilityFunction util,
int semantics)
public ExecutableDungTheory next(java.util.Collection<? extends Perceivable> percepts)
Agentnext in class AbstractLotteryAgentpercepts - a collection of percepts.public double getUtility(DungTheory theory, int semantics)
AbstractLotteryAgentgetUtility in class AbstractLotteryAgenttheory - some theorysemantics - some semantics