Package eu.su.mas.dedale.gui
Class MyController
java.lang.Object
eu.su.mas.dedale.gui.MyController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToSentMessages(int n) Add a given number of messages to the interface counter for sent messagesvoidaddToTransmittedMessages(int n) Add a given number of messages to the interface counter for received messagesvoidvoiddedaleAbout(javafx.event.ActionEvent event) Help menuvoiddedaleForum(javafx.event.ActionEvent event) voiddedaleTchat(javafx.event.ActionEvent event) voiddedaleWebsite(javafx.event.ActionEvent event) voidinit()voidkeyPressed(javafx.scene.input.KeyEvent keyEvent) User controlled agentvoidlinkBehaviourToKlist(jade.core.behaviours.Behaviour b) Associate the agent behaviour in charge of the killing to this listvoidsetGraph(org.graphstream.ui.fx_viewer.FxViewPanel viewpanel) Trying to add the graph ref to the scenevoidMethod 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
-