Package eu.su.mas.dedale.gui
Class MyController
java.lang.Object
eu.su.mas.dedale.gui.MyController
public class MyController
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description MyController()
-
Method Summary
Modifier and Type Method Description void
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
connectGuiWithAgentObservable(AgentObservableElement e)
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)
java.lang.String
getFirstToKill()
KeyboardObservable
getKeyObservable()
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
updateTableGui(AgentObservableElement e)
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
public java.lang.String getFirstToKill()- Returns:
- null if there is no agent to kill, agentLocalName otherwise
-