Class T1BeliefState
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.BeliefState
-
- net.sf.tweety.agents.dialogues.oppmodels.T1BeliefState
-
public class T1BeliefState extends BeliefState
This belief state consists of a simple recursive opponent model.- Author:
- Matthias Thimm, Tjitze Rienstra
-
-
Field Summary
Fields Modifier and Type Field Description private T1BeliefStateoppModelThe opponent model of the agent (as there are only two agents in the system the model always refers to the other agent.
-
Constructor Summary
Constructors Constructor Description T1BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction)Creates a new T1-belief-state with the given parameters and without nesting.T1BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction, T1BeliefState oppModel)Creates a new T1-belief-state with the given parameters.
-
Method Summary
Modifier and Type Method Description java.lang.Objectclone()java.lang.Stringdisplay()Pretty print of this belief state.Pair<java.lang.Double,java.util.Set<ExecutableExtension>>doMove(ArgumentationEnvironment env, DialogueTrace<Argument,Extension> trace)Gives the set of all best next moves with their expected utility according to the belief state and the given trace.booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()voidupdate(DialogueTrace<Argument,Extension> trace)Updates the current belief state accordingly to the given dialogue trace.-
Methods inherited from class net.sf.tweety.agents.dialogues.oppmodels.BeliefState
getKnownArguments, getLegalMoves, getUtilityFunction, move
-
-
-
-
Field Detail
-
oppModel
private T1BeliefState oppModel
The opponent model of the agent (as there are only two agents in the system the model always refers to the other agent.
-
-
Constructor Detail
-
T1BeliefState
public T1BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction, T1BeliefState oppModel)
Creates a new T1-belief-state with the given parameters.- Parameters:
knownArguments- the set of arguments known by the agent.utilityFunction- the utility function of the agent.oppModel- the opponent model of the agent (null if no further model is given).
-
T1BeliefState
public T1BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction)
Creates a new T1-belief-state with the given parameters and without nesting.- Parameters:
knownArguments- the set of arguments known by the agent.utilityFunction- the utility function of the agent.
-
-
Method Detail
-
update
public void update(DialogueTrace<Argument,Extension> trace)
Description copied from class:BeliefStateUpdates the current belief state accordingly to the given dialogue trace.- Specified by:
updatein classBeliefState- Parameters:
trace- a dialogue trace
-
doMove
public Pair<java.lang.Double,java.util.Set<ExecutableExtension>> doMove(ArgumentationEnvironment env, DialogueTrace<Argument,Extension> trace)
Description copied from class:BeliefStateGives the set of all best next moves with their expected utility according to the belief state and the given trace.- Specified by:
doMovein classBeliefState- Parameters:
env- the environment (gives access to the current trace)trace- the dialogue trace.- Returns:
- the set of all best next moves with their expected utility
-
clone
public java.lang.Object clone()
- Specified by:
clonein classBeliefState
-
display
public java.lang.String display()
Description copied from class:BeliefStatePretty print of this belief state.- Specified by:
displayin classBeliefState- Returns:
- a string representation of this state.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBeliefState
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classBeliefState
-
-