public abstract class AbstractLotteryAgent extends Agent
Modifier and Type | Field and Description |
---|---|
protected Semantics |
semantics
The used semantics
|
protected DungTheory |
theory
The theory of this agent.
|
Constructor and Description |
---|
AbstractLotteryAgent(java.lang.String name,
DungTheory theory,
Semantics semantics)
Creates a new lottery agent
|
Modifier and Type | Method and Description |
---|---|
Semantics |
getSemantics()
Returns the semantics.
|
DungTheory |
getTheory()
Returns the theory of this agent.
|
abstract double |
getUtility(DungTheory theory,
Semantics 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 Semantics semantics
public AbstractLotteryAgent(java.lang.String name, DungTheory theory, Semantics 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)
Agent
public abstract double getUtility(DungTheory theory, Semantics semantics)
theory
- some theorysemantics
- some semanticspublic Semantics getSemantics()