Package eu.su.mas.dedale.gui
Class MyController
java.lang.Object
eu.su.mas.dedale.gui.MyController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToSentMessages
(int n) Add a given number of messages to the interface counter for sent messagesvoid
addToTransmittedMessages
(int n) Add a given number of messages to the interface counter for received messagesvoid
void
dedaleAbout
(javafx.event.ActionEvent event) Help menuvoid
dedaleForum
(javafx.event.ActionEvent event) void
dedaleTchat
(javafx.event.ActionEvent event) void
dedaleWebsite
(javafx.event.ActionEvent event) void
init()
void
keyPressed
(javafx.scene.input.KeyEvent keyEvent) User controlled agentvoid
linkBehaviourToKlist
(jade.core.behaviours.Behaviour b) Associate the agent behaviour in charge of the killing to this listvoid
setGraph
(org.graphstream.ui.fx_viewer.FxViewPanel viewpanel) Trying to add the graph ref to the scenevoid
Method used to bypass a non understood bug.
-
Constructor Details
-
MyController
public MyController()
-
-
Method Details
-
dedaleAbout
public void dedaleAbout(javafx.event.ActionEvent event) Help menu -
dedaleWebsite
public void dedaleWebsite(javafx.event.ActionEvent event) -
dedaleTchat
public void dedaleTchat(javafx.event.ActionEvent event) -
dedaleForum
public void dedaleForum(javafx.event.ActionEvent event) -
setGraph
public void setGraph(org.graphstream.ui.fx_viewer.FxViewPanel viewpanel) Trying to add the graph ref to the scene- Parameters:
viewpanel
- ref to the panel we add the graph into
-
addToSentMessages
public void addToSentMessages(int n) Add a given number of messages to the interface counter for sent messages- Parameters:
n
- number of messages to add
-
addToTransmittedMessages
public void addToTransmittedMessages(int n) Add a given number of messages to the interface counter for received messages- Parameters:
n
- nb messages to add
-
connectGuiWithAgentObservable
-
updateTableGui
Method used to bypass a non understood bug. The listener cascade (agent 2 gs ooa 2 gui) is not working for the GUI step for an unknown reason. The Gui seems not to receive the changes in ooa. But when I force a change in the list everything is updated. Which means the links are ok, just the links are ok. The trigger are just not executed.- Parameters:
e
- Observable element to update for agent
-
init
public void init() -
keyPressed
public void keyPressed(javafx.scene.input.KeyEvent keyEvent) User controlled agent -
getKeyObservable
-
linkBehaviourToKlist
public void linkBehaviourToKlist(jade.core.behaviours.Behaviour b) Associate the agent behaviour in charge of the killing to this list- Parameters:
b
- behaviour to add
-
getFirstToKill
- Returns:
- null if there is no agent to kill, agentLocalName otherwise
-