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, getTheoryprivate 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)
Agentnext in class AbstractLotteryAgentpercepts - a collection of percepts.public double getUtility(DungTheory theory, Semantics semantics)
AbstractLotteryAgentgetUtility in class AbstractLotteryAgenttheory - some theorysemantics - some semantics