Class MyController

java.lang.Object
eu.su.mas.dedale.gui.MyController

public class MyController extends Object
  • 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

      public void connectGuiWithAgentObservable(AgentObservableElement e)
    • updateTableGui

      public void updateTableGui(AgentObservableElement e)
      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

      public KeyboardObservable 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 String getFirstToKill()
      Returns:
      null if there is no agent to kill, agentLocalName otherwise