Class BaseVisual

java.lang.Object
  |
  +--Base
        |
        +--BaseVisual
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class BaseVisual
extends Base
implements java.awt.event.ActionListener


Field Summary
protected  javax.swing.JFrame fFrame
           
 
Fields inherited from class Base
agents
 
Constructor Summary
BaseVisual()
           
BaseVisual(java.lang.String aName)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void destroy()
           
 void init()
           
 void initMenu()
           
 void onMessage(Message msg)
          Called on incoming message.
 void onUpdate()
          Called when agent was added or removed.
 
Methods inherited from class Base
addAgent, messageReceived, removeAgent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fFrame

protected javax.swing.JFrame fFrame
Constructor Detail

BaseVisual

public BaseVisual()

BaseVisual

public BaseVisual(java.lang.String aName)
Method Detail

initMenu

public void initMenu()

init

public void init()

onUpdate

public void onUpdate()
Description copied from class: Base
Called when agent was added or removed. Important for the visual agent to update the JList
Overrides:
onUpdate in class Base

onMessage

public void onMessage(Message msg)
Description copied from class: Base
Called on incoming message. Until now, this function doesn't process messages that are send to a base.
Overrides:
onMessage in class Base

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

destroy

public void destroy()