Class T3BeliefState
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.BeliefState
-
- net.sf.tweety.agents.dialogues.oppmodels.T3BeliefState
-
- All Implemented Interfaces:
java.lang.Comparable<T3BeliefState>
public class T3BeliefState extends BeliefState implements java.lang.Comparable<T3BeliefState>
This belief state consists of a probability distribution over other opponent models with virtual arguments.- Author:
- Tjitze Rienstra, Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private ProbabilityFunction<T3BeliefState>
prob
The probability function on opponent modelsprivate RecognitionFunction
rec
The recognition function for recognizing ordinary arguments.private java.util.Set<Argument>
virtualArguments
The set of virtual arguments assumed to exist.private java.util.Set<Attack>
virtualAttacks
The set of virtual attacks assumed to exist between virtual and ordinary arguments.
-
Constructor Summary
Constructors Constructor Description T3BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction, java.util.Set<Argument> virtualArguments, java.util.Set<Attack> virtualAttacks, RecognitionFunction rec, ProbabilityFunction<T3BeliefState> prob)
Creates a new T3-belief-state with the given parameters.
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
int
compareTo(T3BeliefState arg0)
java.lang.String
display()
Pretty print of this belief state.private java.lang.String
display(int indent)
Aux method for pretty print();protected 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.boolean
equals(java.lang.Object obj)
int
hashCode()
T2BeliefState
projectToT2BeliefState()
Returns a T2-belief state that is a projection of this belief state, i.e.void
update(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
-
virtualArguments
private java.util.Set<Argument> virtualArguments
The set of virtual arguments assumed to exist.
-
virtualAttacks
private java.util.Set<Attack> virtualAttacks
The set of virtual attacks assumed to exist between virtual and ordinary arguments.
-
rec
private RecognitionFunction rec
The recognition function for recognizing ordinary arguments.
-
prob
private ProbabilityFunction<T3BeliefState> prob
The probability function on opponent models
-
-
Constructor Detail
-
T3BeliefState
public T3BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction, java.util.Set<Argument> virtualArguments, java.util.Set<Attack> virtualAttacks, RecognitionFunction rec, ProbabilityFunction<T3BeliefState> prob)
Creates a new T3-belief-state with the given parameters.- Parameters:
knownArguments
- the set of arguments known by the agent.utilityFunction
- the utility function of the agent.virtualArguments
- the set of virtual argumentsvirtualAttacks
- the set of virtual attacksrec
- the recognition functionprob
- the probability function over opponent models.
-
-
Method Detail
-
update
public void update(DialogueTrace<Argument,Extension> trace)
Description copied from class:BeliefState
Updates the current belief state accordingly to the given dialogue trace.- Specified by:
update
in classBeliefState
- Parameters:
trace
- a dialogue trace
-
doMove
protected Pair<java.lang.Double,java.util.Set<ExecutableExtension>> doMove(ArgumentationEnvironment env, DialogueTrace<Argument,Extension> trace)
Description copied from class:BeliefState
Gives the set of all best next moves with their expected utility according to the belief state and the given trace.- Specified by:
doMove
in 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
-
projectToT2BeliefState
public T2BeliefState projectToT2BeliefState()
Returns a T2-belief state that is a projection of this belief state, i.e. all virtual arguments and virtual attacks are removed from all nested models.- Returns:
- the T2-projection of this belief state.
-
clone
public java.lang.Object clone()
- Specified by:
clone
in classBeliefState
-
display
public java.lang.String display()
Description copied from class:BeliefState
Pretty print of this belief state.- Specified by:
display
in classBeliefState
- Returns:
- a string representation of this state.
-
display
private java.lang.String display(int indent)
Aux method for pretty print();- Parameters:
indent
- indentation for display, depending on recursion depth- Returns:
- a string representation of this state.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBeliefState
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classBeliefState
-
compareTo
public int compareTo(T3BeliefState arg0)
- Specified by:
compareTo
in interfacejava.lang.Comparable<T3BeliefState>
-
-