Class RolesPopulationLineChartDrawer
java.lang.Object
madkit.kernel.Agent
madkit.simulation.SimuAgent
madkit.kernel.Watcher
madkit.simulation.Viewer
madkit.simulation.viewer.LineChartDrawer<Probe>
madkit.simulation.viewer.RolesPopulationLineChartDrawer
A Viewer that displays the population of roles in the artificial organization
-
Nested Class Summary
Nested classes/interfaces inherited from class madkit.kernel.Agent
Agent.ReturnCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRoleToMonitoring(String group, String role) Adds a role to the monitoringvoiddisplay()The display method called by the simulation engine.protected StringGets the title of the line chartprotected StringGets the label of the x axisprotected StringGets the label of the y axisprotected voidThis method is called when the agent is activated.voidrender()Renders the simulation state.Methods inherited from class madkit.simulation.viewer.LineChartDrawer
addData, addSerie, getLineChart, getMaxXDataPoints, getSeries, setMaxXDataPointsMethods inherited from class madkit.simulation.Viewer
getGUI, onEnd, onSimulationStart, setGUIMethods inherited from class madkit.kernel.Watcher
addProbe, getProbes, removeAllProbes, removeProbe, toStringMethods inherited from class madkit.simulation.SimuAgent
createSimuGroup, getCommunity, getEngineGroup, getEnvironment, getLauncher, getModel, getModelGroup, getNextEventDate, getScheduler, getSimuTimer, getViewers, launchAgent, leaveRole, leaveSimuGroup, leaveSimuRole, playRole, prng, requestSimuRoleMethods inherited from class madkit.kernel.Agent
activate, broadcast, broadcastWithRole, broadcastWithRoleWaitForReplies, checkAgentAddress, createGroup, createGroup, createGroup, end, equals, executeThisAgent, executeThisAgent, exitOnKill, getAgentsWithRole, getAgentWithRole, getKernelAddress, getKernelConfig, getLogger, getMailbox, getName, getNetworkID, getOrganization, getReplyTo, handleRequestActionMessage, hashCode, isAlive, killAgent, killAgent, launchAgent, launchAgent, leaveGroup, leaveRole, live, nextMessage, onLive, pause, receiveMessage, reload, reply, replyWithRole, requestRole, requestRole, send, send, sendWaitReply, sendWaitReply, sendWithRole, sendWithRole, sendWithRoleWaitReply, sendWithRoleWaitReply, setupDefaultGUI, waitAnswer, waitAnswer, waitNextMessage, waitNextMessage
-
Constructor Details
-
RolesPopulationLineChartDrawer
public RolesPopulationLineChartDrawer()
-
-
Method Details
-
onActivation
protected void onActivation()Description copied from class:LineChartDrawerThis method is called when the agent is activated. By default, it requests the roleSimuOrganization.VIEWER_ROLEin the groupSimuOrganization.ENGINE_GROUP.The GUI is initialized with a
LineChartas the central node.- Overrides:
onActivationin classLineChartDrawer<Probe>
-
getLineChartTitle
Gets the title of the line chart- Specified by:
getLineChartTitlein classLineChartDrawer<Probe>- Returns:
- the title of the line chart
-
getyAxisLabel
Gets the label of the y axis- Specified by:
getyAxisLabelin classLineChartDrawer<Probe>- Returns:
- the label of the y-axis of the line chart
-
getxAxisLabel
Gets the label of the x axis- Specified by:
getxAxisLabelin classLineChartDrawer<Probe>- Returns:
- the label of the x-axis of the line chart
-
display
-
addRoleToMonitoring
-
render
-