Class BeliefState
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.BeliefState
-
- Direct Known Subclasses:
T1BeliefState,T2BeliefState,T3BeliefState
public abstract class BeliefState extends Object
This abstract class encapsulates the common characteristics of a belief state for arguing agents.- Author:
- Matthias Thimm, Tjitze Rienstra
-
-
Constructor Summary
Constructors Constructor Description BeliefState(net.sf.tweety.arg.dung.semantics.Extension knownArguments, UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> utilityFunction)Creates a new belief-state with the given parameters.
-
Method Summary
Modifier and Type Method Description abstract Objectclone()abstract Stringdisplay()Pretty print of this belief state.protected abstract 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)protected net.sf.tweety.arg.dung.semantics.ExtensiongetKnownArguments()Returns the set of known arguments.protected Set<ExecutableExtension>getLegalMoves(ArgumentationEnvironment env, DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> trace)Returns the set of possible moves in the given situation and the given trace.protected UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension>getUtilityFunction()Returns the utility function of this belief state.inthashCode()ExecutableExtensionmove(ArgumentationEnvironment env)Gives the next best move according to the belief state and the given trace.abstract 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.
-
-
-
Constructor Detail
-
BeliefState
public BeliefState(net.sf.tweety.arg.dung.semantics.Extension knownArguments, UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> utilityFunction)Creates a new belief-state with the given parameters.- Parameters:
knownArguments- the set of arguments known by the agent.utilityFunction- the utility function of the agent.
-
-
Method Detail
-
getLegalMoves
protected Set<ExecutableExtension> getLegalMoves(ArgumentationEnvironment env, DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> trace)
Returns the set of possible moves in the given situation and the given trace.- Parameters:
env- the environment (gives access to universal Dung theory)trace- the trace to be considered.- Returns:
- the set of possible moves in the given situation.
-
getKnownArguments
protected net.sf.tweety.arg.dung.semantics.Extension getKnownArguments()
Returns the set of known arguments.- Returns:
- the set of known arguments.
-
getUtilityFunction
protected UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> getUtilityFunction()
Returns the utility function of this belief state.- Returns:
- the utility function of this belief state.
-
update
public abstract void update(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.- Parameters:
trace- a dialogue trace
-
doMove
protected abstract 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.- 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
-
display
public abstract String display()
Pretty print of this belief state.- Returns:
- a string representation of this state.
-
move
public ExecutableExtension move(ArgumentationEnvironment env)
Gives the next best move according to the belief state and the given trace.- Parameters:
env- the environment (gives access to the current trace)- Returns:
- a set of arguments.
-
-