public class ProbabilisticLotteryAgent extends AbstractLotteryAgent
| Modifier and Type | Field and Description | 
|---|---|
private SubgraphProbabilityFunction | 
prob
Uncertainty on sub graphs. 
 | 
private double | 
stickynesscoefficient
Stickyness coefficient for the sticky update. 
 | 
static byte | 
UPDATE_NAIVE
Constant for denoting the naive update. 
 | 
static byte | 
UPDATE_ROUGH
Constant for denoting the rough update. 
 | 
static byte | 
UPDATE_SIMPLE
Constant for denoting the simple update. 
 | 
static byte | 
UPDATE_STICKY
Constant for denoting the sticky update. 
 | 
private byte | 
updatestrategy
The update strategy used. 
 | 
private UtilityFunction | 
util
Utility function 
 | 
semantics, theory| Constructor and Description | 
|---|
ProbabilisticLotteryAgent(java.lang.String name,
                         DungTheory theory,
                         SubgraphProbabilityFunction prob,
                         UtilityFunction util,
                         Semantics semantics)
Creates a new lottery agent 
 | 
ProbabilisticLotteryAgent(java.lang.String name,
                         DungTheory theory,
                         SubgraphProbabilityFunction prob,
                         UtilityFunction util,
                         Semantics semantics,
                         byte updatestrategy)
Creates a new lottery agent 
 | 
ProbabilisticLotteryAgent(java.lang.String name,
                         DungTheory theory,
                         SubgraphProbabilityFunction prob,
                         UtilityFunction util,
                         Semantics semantics,
                         byte updatestrategy,
                         double stickynesscoefficient)
Creates a new lottery agent 
 | 
| Modifier and Type | Method and Description | 
|---|---|
DungTheory | 
getTheory()
Returns the theory of this agent. 
 | 
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. 
 | 
getSemanticspublic static final byte UPDATE_NAIVE
public static final byte UPDATE_SIMPLE
public static final byte UPDATE_STICKY
public static final byte UPDATE_ROUGH
private double stickynesscoefficient
private byte updatestrategy
private SubgraphProbabilityFunction prob
private UtilityFunction util
public ProbabilisticLotteryAgent(java.lang.String name,
                                 DungTheory theory,
                                 SubgraphProbabilityFunction prob,
                                 UtilityFunction util,
                                 Semantics semantics)
name - the name of the agenttheory - some theoryprob - a probability functionutil - a utility functionpublic ProbabilisticLotteryAgent(java.lang.String name,
                                 DungTheory theory,
                                 SubgraphProbabilityFunction prob,
                                 UtilityFunction util,
                                 Semantics semantics,
                                 byte updatestrategy)
name - the name of the agenttheory - some theoryprob - a probability functionutil - a utility functionupdatestrategy - The update strategy usedpublic ProbabilisticLotteryAgent(java.lang.String name,
                                 DungTheory theory,
                                 SubgraphProbabilityFunction prob,
                                 UtilityFunction util,
                                 Semantics semantics,
                                 byte updatestrategy,
                                 double stickynesscoefficient)
name - the name of the agenttheory - some theoryprob - a probability functionutil - a utility functionupdatestrategy - The update strategy usedStickyness - coefficient for the sticky update (only needed when updatestrategy==UPDATE_STICKY.public DungTheory getTheory()
getTheory in class AbstractLotteryAgentpublic 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