Class T2BeliefState
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.BeliefState
-
- net.sf.tweety.agents.dialogues.oppmodels.T2BeliefState
-
- All Implemented Interfaces:
java.lang.Comparable<T2BeliefState>
public class T2BeliefState extends BeliefState implements java.lang.Comparable<T2BeliefState>
This belief state consists of a probability distribution over other opponent models.- Author:
- Tjitze Rienstra, Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description T2BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction)Creates a new T2-belief-state with the given parameters and without nesting.T2BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction, ProbabilityFunction<T2BeliefState> prob)Creates a new T2-belief-state with the given parameters.
-
Method Summary
Modifier and Type Method Description java.lang.Objectclone()intcompareTo(T2BeliefState arg0)java.lang.Stringdisplay()Pretty print of this belief state.booleanequals(java.lang.Object obj)inthashCode()T1BeliefStatesampleT1BeliefState()Returns a T1-belief state that is a projection of this belief state, i.e.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
move
-
-
-
-
Constructor Detail
-
T2BeliefState
public T2BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction, ProbabilityFunction<T2BeliefState> prob)
Creates a new T2-belief-state with the given parameters.- Parameters:
knownArguments- the set of arguments known by the agent.utilityFunction- the utility function of the agent.prob- the probability function over opponent models.
-
T2BeliefState
public T2BeliefState(Extension knownArguments, UtilityFunction<Argument,Extension> utilityFunction)
Creates a new T2-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
-
sampleT1BeliefState
public T1BeliefState sampleT1BeliefState()
Returns a T1-belief state that is a projection of this belief state, i.e. in every nested model one substate is chose randomly depending on its probability- Returns:
- a T1-projection of this belief state.
-
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.
-
clone
public java.lang.Object clone()
- Specified by:
clonein classBeliefState
-
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
-
compareTo
public int compareTo(T2BeliefState arg0)
- Specified by:
compareToin interfacejava.lang.Comparable<T2BeliefState>
-
-