Class T3BeliefState
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.BeliefState
-
- net.sf.tweety.agents.dialogues.oppmodels.T3BeliefState
-
- All Implemented Interfaces:
Comparable<T3BeliefState>
public class T3BeliefState extends BeliefState implements Comparable<T3BeliefState>
This belief state consists of a probability distribution over other opponent models with virtual arguments.- Author:
- Tjitze Rienstra, Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description T3BeliefState(net.sf.tweety.arg.dung.semantics.Extension knownArguments, UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> utilityFunction, Set<net.sf.tweety.arg.dung.syntax.Argument> virtualArguments, Set<net.sf.tweety.arg.dung.syntax.Attack> virtualAttacks, RecognitionFunction rec, net.sf.tweety.math.probability.ProbabilityFunction<T3BeliefState> prob)Creates a new T3-belief-state with the given parameters.
-
Method Summary
Modifier and Type Method Description Objectclone()intcompareTo(T3BeliefState arg0)Stringdisplay()Pretty print of this belief state.protected net.sf.tweety.commons.util.Pair<Double,Set<ExecutableExtension>>doMove(ArgumentationEnvironment env, DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> trace)Gives the set of all best next moves with their expected utility according to the belief state and the given trace.booleanequals(Object obj)inthashCode()T2BeliefStateprojectToT2BeliefState()Returns a T2-belief state that is a projection of this belief state, i.e.voidupdate(DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.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
-
-
-
-
Constructor Detail
-
T3BeliefState
public T3BeliefState(net.sf.tweety.arg.dung.semantics.Extension knownArguments, UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> utilityFunction, Set<net.sf.tweety.arg.dung.syntax.Argument> virtualArguments, Set<net.sf.tweety.arg.dung.syntax.Attack> virtualAttacks, RecognitionFunction rec, net.sf.tweety.math.probability.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<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.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
protected net.sf.tweety.commons.util.Pair<Double,Set<ExecutableExtension>> doMove(ArgumentationEnvironment env, DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.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
-
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 Object clone()
- Specified by:
clonein classBeliefState
-
display
public String display()
Description copied from class:BeliefStatePretty print of this belief state.- Specified by:
displayin classBeliefState- Returns:
- a string representation of this state.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBeliefState
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classBeliefState
-
compareTo
public int compareTo(T3BeliefState arg0)
- Specified by:
compareToin interfaceComparable<T3BeliefState>
-
-