edu.turtlekit2.ui.utils
Class GUIMessage<T>

java.lang.Object
  extended by madkit.kernel.Message
      extended by madkit.kernel.ObjectMessage<T>
          extended by edu.turtlekit2.ui.utils.GUIMessage<T>
Type Parameters:
T - - the type of the displayed component
All Implemented Interfaces:
Serializable, Cloneable

public class GUIMessage<T>
extends madkit.kernel.ObjectMessage<T>

A GUI message. An agent can send a GUI Message to the "UIManager" of its group in order to display gui components (windows).

Version:
0.1 - 6/2008
Author:
G. Beurier
See Also:
BoardAgent, Serialized Form

Field Summary
 String name
           
 
Constructor Summary
GUIMessage(T theContent, int location, String name)
           
GUIMessage(T theContent, String name)
           
 
Method Summary
 int getLocation()
           
 String getName()
           
 
Methods inherited from class madkit.kernel.ObjectMessage
getContent
 
Methods inherited from class madkit.kernel.Message
clone, getCreationDate, getReceiver, getSender, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name
Constructor Detail

GUIMessage

public GUIMessage(T theContent,
                  int location,
                  String name)

GUIMessage

public GUIMessage(T theContent,
                  String name)
Method Detail

getLocation

public int getLocation()
Returns:
the location of the window
See Also:
SimulationBoard

getName

public String getName()
Returns:
the name of the window