Class LotteryGameSystem
- java.lang.Object
-
- net.sf.tweety.agents.MultiAgentSystem<AbstractLotteryAgent>
-
- net.sf.tweety.agents.dialogues.lotteries.LotteryGameSystem
-
- All Implemented Interfaces:
java.lang.Iterable<AbstractLotteryAgent>
,java.util.Collection<AbstractLotteryAgent>
public class LotteryGameSystem extends MultiAgentSystem<AbstractLotteryAgent>
This multi-agent system models a lottery dialogue game between a lottery agent and a dummy agent- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.agents.MultiAgentSystem
EXECUTE_TILL_TERMINATION
-
-
Constructor Summary
Constructors Constructor Description LotteryGameSystem(DungTheory universalTheory)
Creates a new grounded game system.
-
Method Summary
Modifier and Type Method Description boolean
add(AbstractLotteryAgent e)
void
execute(AbstractProtocol protocol)
Executes the given protocol till it terminates.-
Methods inherited from class net.sf.tweety.agents.MultiAgentSystem
addAll, clear, contains, containsAll, equals, execute, getEnvironment, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
LotteryGameSystem
public LotteryGameSystem(DungTheory universalTheory)
Creates a new grounded game system.- Parameters:
universalTheory
- the universal Dung theory used for argumentation.
-
-
Method Detail
-
add
public boolean add(AbstractLotteryAgent e)
- Specified by:
add
in interfacejava.util.Collection<AbstractLotteryAgent>
- Overrides:
add
in classMultiAgentSystem<AbstractLotteryAgent>
-
execute
public void execute(AbstractProtocol protocol) throws ProtocolTerminatedException
Description copied from class:MultiAgentSystem
Executes the given protocol till it terminates.- Overrides:
execute
in classMultiAgentSystem<AbstractLotteryAgent>
- Parameters:
protocol
- a protocol.- Throws:
ProtocolTerminatedException
- if the protocol has already terminated.
-
-