Package | Description |
---|---|
agent |
Agent package contains all functions and classes needed to implement agents
for the WIDM-simulator
|
game |
Game package contains all functions and classes needed to organize the game
and show the game in GUI, including starting and end the game, generate
AssignmentEvent, ConversationEvent, EliminationEvent
|
Modifier and Type | Class and Description |
---|---|
class |
AgentImplementation
This is a standard Agent Implementation.
|
class |
Contestant
The Contestant class represents a default contestant.
|
class |
Mole
This simple Mole class can be used to model the mole.
|
class |
RationalPlayer
Rational contestant
|
class |
SlyDog
Sly contestant.
|
class |
SmartMole
This is a slightly smarter mole.
|
Modifier and Type | Field and Description |
---|---|
protected Agent |
AgentImplementation.currentVote
The suspicion who has the highest suspicious weight in current round
|
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<Agent,Agent> |
AgentImplementation.secondOrderBelief
One order belief history.
|
protected java.util.HashMap<Agent,Agent> |
AgentImplementation.secondOrderBelief
One order belief history.
|
protected java.util.HashMap<Agent,java.lang.Double> |
AgentImplementation.suspicions
The suspicious weight.
|
Modifier and Type | Method and Description |
---|---|
Agent |
JAgentButton.getAgentModel()
Getter for the Agent object that backs this button up.
|
Agent |
Agent.tellConversation()
This may do the same as vote
|
Agent |
AgentImplementation.tellConversation() |
Agent |
Agent.vote()
This is the voting method, used in the final stage of every game round.
|
Agent |
AgentImplementation.vote() |
Modifier and Type | Method and Description |
---|---|
protected java.util.ArrayList<Agent> |
AgentImplementation.getMaxSuspiciousAgents()
Get the maximum suspicious agents list
|
java.util.HashMap<Agent,java.lang.Double> |
AgentImplementation.getSuspicions()
Returns the current suspicion map
|
Modifier and Type | Method and Description |
---|---|
void |
Agent.addCompetitor(Agent agent)
Adds an competing Agent to this Agent's list of competitors
|
void |
AgentImplementation.addCompetitor(Agent competitor) |
void |
Agent.informElimination(Agent loser)
EliminationEvent tells Agent who is eliminated through this method.
|
void |
Contestant.informElimination(Agent loser) |
void |
Mole.informElimination(Agent loser) |
void |
Agent.listenConversation(Agent speaker,
Agent suspicion)
ConversationEvent tells Agent who is the mole.
|
void |
AgentImplementation.listenConversation(Agent speaker,
Agent suspicion) |
void |
Contestant.listenConversation(Agent speaker,
Agent suspicion) |
void |
SmartMole.listenConversation(Agent speaker,
Agent suspicion) |
void |
Agent.updateSuspicion(Agent a,
double factor)
Multiply this AgentImplementation's suspicion towards a specific Agent
with some factor.
|
void |
AgentImplementation.updateSuspicion(Agent a,
double factor) |
Modifier and Type | Method and Description |
---|---|
void |
Agent.addCompetitors(java.util.Collection<Agent> others)
Adds competitors to the current Agent class
|
void |
AgentImplementation.addCompetitors(java.util.Collection<Agent> others) |
void |
Agent.informAssResult(boolean success,
java.util.ArrayList<Agent> triedList,
java.util.ArrayList<Agent> sabotagedList)
AssignmentEvent tells the agent what she sees
|
void |
Agent.informAssResult(boolean success,
java.util.ArrayList<Agent> triedList,
java.util.ArrayList<Agent> sabotagedList)
AssignmentEvent tells the agent what she sees
|
void |
Contestant.informAssResult(boolean success,
java.util.ArrayList<Agent> triedList,
java.util.ArrayList<Agent> sabotagedList) |
void |
Contestant.informAssResult(boolean success,
java.util.ArrayList<Agent> triedList,
java.util.ArrayList<Agent> sabotagedList) |
void |
Mole.informAssResult(boolean success,
java.util.ArrayList<Agent> triedList,
java.util.ArrayList<Agent> sabotagedList) |
void |
Mole.informAssResult(boolean success,
java.util.ArrayList<Agent> triedList,
java.util.ArrayList<Agent> sabotagedList) |
Constructor and Description |
---|
JAgentButton(Agent a,
javax.swing.Action ac)
Create a new JAgentButton with a specific Agent as model and an Action
object containing the desired Action when the button is clicked.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<Agent> |
Assignment.agents |
protected java.util.HashMap<Agent,java.util.ArrayList<Agent>> |
Assignment.agentSeenBy |
protected java.util.HashMap<Agent,java.util.ArrayList<Agent>> |
Assignment.agentSeenBy |
protected java.util.HashMap<Agent,java.util.ArrayList<Agent>> |
Assignment.agentSees |
protected java.util.HashMap<Agent,java.util.ArrayList<Agent>> |
Assignment.agentSees |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Agent> |
GameModel.getAgentList()
Which Agents are currently playing the game?
|
java.util.ArrayList<Agent> |
Assignment.getSpectated(Agent a)
This method gets a list all agents that can be seen by agent a
|
java.util.ArrayList<Agent> |
Assignment.getSpectators(Agent a)
Gets a list of agents who can see agent a
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Agent> |
Assignment.getSpectated(Agent a)
This method gets a list all agents that can be seen by agent a
|
java.util.ArrayList<Agent> |
Assignment.getSpectators(Agent a)
Gets a list of agents who can see agent a
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<java.lang.String> |
AssignmentEvent.execute(java.util.ArrayList<Agent> agents) |
java.util.LinkedList<java.lang.String> |
EliminationEvent.execute(java.util.ArrayList<Agent> agents) |
java.util.LinkedList<java.lang.String> |
GameEvent.execute(java.util.ArrayList<Agent> agents)
Performs the GameEvent and lets the agents interact
|
Constructor and Description |
---|
Assignment(java.util.AbstractList<Agent> agents,
double difficulty) |
AssignmentByGroup(java.util.AbstractList<Agent> agents,
double difficulty)
Constructor generates the visibility relations
|
AssignmentByRandMatrix(java.util.AbstractList<Agent> agents,
double viewFraction,
double difficulty)
Constructor generates the visibility relations
|