public abstract class AbstractLotteryAgent extends Agent
| Modifier and Type | Field and Description |
|---|---|
protected int |
semantics
The used semantics
|
protected DungTheory |
theory
The theory of this agent.
|
| Constructor and Description |
|---|
AbstractLotteryAgent(java.lang.String name,
DungTheory theory,
int semantics)
Creates a new lottery agent
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSemantics()
Returns the semantics.
|
DungTheory |
getTheory()
Returns the theory of this agent.
|
abstract double |
getUtility(DungTheory theory,
int semantics)
Returns the utility of the agent wrt.
|
abstract ExecutableDungTheory |
next(java.util.Collection<? extends Perceivable> percepts)
Determines the next action of this agent wrt.
|
protected DungTheory theory
protected int semantics
public AbstractLotteryAgent(java.lang.String name,
DungTheory theory,
int semantics)
name - the name of the agenttheory - some theoryprob - a probability functionutil - a utility functionisDummy - whether it is a dummy agent.public DungTheory getTheory()
public abstract ExecutableDungTheory next(java.util.Collection<? extends Perceivable> percepts)
Agentpublic abstract double getUtility(DungTheory theory, int semantics)
theory - some theorysemantics - some semanticspublic int getSemantics()