public class Blackboard
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Blackboard |
instance
Single object of this class, using the Singleton
pattern
|
private Simulation |
simulation
Simulation, which is used to get the number of the iteration of the
simulation
|
private Sociogram |
sociogram
Sociogram of the individual agents
|
private SociogramGUI |
sociogramGUI
GUI of the sociogram
|
Modifier | Constructor and Description |
---|---|
private |
Blackboard()
Constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
createSociogram(java.util.List<IndividualAgent> list)
Creates a sociogram from a list of individual agents
|
static Blackboard |
getInstance()
Provides the unique instance of this class according
to the Singleton pattern.
|
Simulation |
getSimulation() |
Sociogram |
getSociogram()
Returns the sociogram
|
SociogramGUI |
getSociogramGUI()
Returns the sociogram GUI
|
void |
setSimulation(Simulation simulation) |
void |
setSociogramGUI(SociogramGUI sociogramGUI)
Sets the sociogram GUI
|
private Sociogram sociogram
private SociogramGUI sociogramGUI
private Simulation simulation
private static Blackboard instance
private Blackboard()
public static Blackboard getInstance()
public Sociogram getSociogram()
public void setSociogramGUI(SociogramGUI sociogramGUI)
public SociogramGUI getSociogramGUI()
public void createSociogram(java.util.List<IndividualAgent> list)
public void setSimulation(Simulation simulation)
public Simulation getSimulation()