|
LightVoting
|
Created by sophie on 22.02.17. More...
Collaboration diagram for org.lightvoting.simulation.environment.CEnvironment:Public Member Functions | |
| CEnvironment (final int p_size, final String p_fileName) | |
| constructor More... | |
| void | addAgentCoordinated (final CGroup p_group, final CVotingAgent p_votingAgent) |
| add agent to group (for coordinated grouping) More... | |
| void | addAgentRandom (final CGroup p_randomGroup, final CVotingAgent p_votingAgent) |
| add agent to group (for random grouping) More... | |
| ILiteral | detectGroup (final CChairAgent p_chairAgent) |
| detect group of chair agent More... | |
| final void | initialset (final CVotingAgent p_votingAgent) |
| initialize groups More... | |
| ILiteral | literal (final CVotingAgent p_votingAgent) |
| returns literal representation of existing groups More... | |
| CGroup | openNewGroupCoordinated (final CVotingAgent p_votingAgent) |
| open new group (for coordinated grouping) More... | |
| CGroup | openNewGroupRandom (final CVotingAgent p_votingAgent) |
| open new group (for random grouping) More... | |
| void | reopen (final CGroup p_group) |
| open group for further elections unless the capacity is reached. More... | |
Private Member Functions | |
| void | wakeUpAgent () |
Private Attributes | |
| final List< CVotingAgent > | m_agentList |
| int | m_currentIndex |
| final String | m_fileName |
| boolean | m_firstActivated |
| final List< CGroup > | m_groups |
Environment class
Definition at line 41 of file CEnvironment.java.
| org.lightvoting.simulation.environment.CEnvironment.CEnvironment | ( | final int | p_size, |
| final String | p_fileName | ||
| ) |
| p_size | number of agents |
| p_fileName | HDF5 file |
Definition at line 58 of file CEnvironment.java.
References org.lightvoting.simulation.environment.CEnvironment.m_agentList, org.lightvoting.simulation.environment.CEnvironment.m_fileName, and org.lightvoting.simulation.environment.CEnvironment.m_groups.
| void org.lightvoting.simulation.environment.CEnvironment.addAgentCoordinated | ( | final CGroup | p_group, |
| final CVotingAgent | p_votingAgent | ||
| ) |
| p_group | group to join |
| p_votingAgent | joining agent |
Definition at line 145 of file CEnvironment.java.
| void org.lightvoting.simulation.environment.CEnvironment.addAgentRandom | ( | final CGroup | p_randomGroup, |
| final CVotingAgent | p_votingAgent | ||
| ) |
| p_randomGroup | random group to join |
| p_votingAgent | joining agent |
Definition at line 131 of file CEnvironment.java.
| ILiteral org.lightvoting.simulation.environment.CEnvironment.detectGroup | ( | final CChairAgent | p_chairAgent | ) |
| p_chairAgent | chair agent |
Definition at line 156 of file CEnvironment.java.
References org.lightvoting.simulation.environment.CEnvironment.m_groups.
Referenced by org.lightvoting.simulation.agent.CChairAgent.perceiveGroup().
Here is the caller graph for this function:| final void org.lightvoting.simulation.environment.CEnvironment.initialset | ( | final CVotingAgent | p_votingAgent | ) |
| p_votingAgent | agent |
Definition at line 71 of file CEnvironment.java.
References org.lightvoting.simulation.environment.CEnvironment.m_firstActivated.
| ILiteral org.lightvoting.simulation.environment.CEnvironment.literal | ( | final CVotingAgent | p_votingAgent | ) |
| p_votingAgent | voting agent |
Definition at line 91 of file CEnvironment.java.
References org.lightvoting.simulation.environment.CEnvironment.m_groups.
Referenced by org.lightvoting.simulation.agent.CVotingAgent.perceiveEnv().
Here is the caller graph for this function:| CGroup org.lightvoting.simulation.environment.CEnvironment.openNewGroupCoordinated | ( | final CVotingAgent | p_votingAgent | ) |
| p_votingAgent | voting agent opening group |
Definition at line 116 of file CEnvironment.java.
| CGroup org.lightvoting.simulation.environment.CEnvironment.openNewGroupRandom | ( | final CVotingAgent | p_votingAgent | ) |
| p_votingAgent | voting agent opening group |
Definition at line 101 of file CEnvironment.java.
| void org.lightvoting.simulation.environment.CEnvironment.reopen | ( | final CGroup | p_group | ) |
Also, wake up the next agent
| p_group | group to be reopened |
Definition at line 173 of file CEnvironment.java.
|
private |
Definition at line 179 of file CEnvironment.java.
References org.lightvoting.simulation.environment.CEnvironment.m_currentIndex.
|
private |
Definition at line 45 of file CEnvironment.java.
Referenced by org.lightvoting.simulation.environment.CEnvironment.CEnvironment().
|
private |
Definition at line 48 of file CEnvironment.java.
Referenced by org.lightvoting.simulation.environment.CEnvironment.wakeUpAgent().
|
private |
Definition at line 51 of file CEnvironment.java.
Referenced by org.lightvoting.simulation.environment.CEnvironment.CEnvironment().
|
private |
Definition at line 50 of file CEnvironment.java.
Referenced by org.lightvoting.simulation.environment.CEnvironment.initialset().
|
private |
Definition at line 43 of file CEnvironment.java.
Referenced by org.lightvoting.simulation.environment.CEnvironment.CEnvironment(), org.lightvoting.simulation.environment.CEnvironment.detectGroup(), and org.lightvoting.simulation.environment.CEnvironment.literal().