LightVoting
|
Action to send messages for communication. More...
Inherits IBaseAction.
Public Member Functions | |
final IFuzzyValue< Boolean > | execute (final IContext p_context, final boolean p_parallel, final List< ITerm > p_argument, final List< ITerm > p_return) |
final int | minimalArgumentNumber () |
final IPath | name () |
final CVotingAgent | register (final CVotingAgent p_agent) |
Register a new agent. More... | |
final CVotingAgent | unregister (final CVotingAgent p_agent) |
Unregisters agent Removes agent from map. More... | |
Private Attributes | |
final Map< String, CVotingAgent > | m_agents = new ConcurrentHashMap<>() |
thread-safe map for storing name and agent object More... | |
Based on/credits to https://lightjason.github.io/tutorials/communication/
Definition at line 49 of file CSend.java.
final IFuzzyValue<Boolean> org.lightvoting.simulation.action.message.CSend.execute | ( | final IContext | p_context, |
final boolean | p_parallel, | ||
final List< ITerm > | p_argument, | ||
final List< ITerm > | p_return | ||
) |
first parameter of the action is the name of the receiving agent
Definition at line 90 of file CSend.java.
final int org.lightvoting.simulation.action.message.CSend.minimalArgumentNumber | ( | ) |
Definition at line 84 of file CSend.java.
final IPath org.lightvoting.simulation.action.message.CSend.name | ( | ) |
Definition at line 78 of file CSend.java.
final CVotingAgent org.lightvoting.simulation.action.message.CSend.register | ( | final CVotingAgent | p_agent | ) |
p_agent | agent object |
Definition at line 60 of file CSend.java.
final CVotingAgent org.lightvoting.simulation.action.message.CSend.unregister | ( | final CVotingAgent | p_agent | ) |
p_agent | agent object |
Definition at line 71 of file CSend.java.
|
private |
Definition at line 54 of file CSend.java.