jade.tools.sniffer
Class Agent

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--jade.tools.sniffer.TreeData
              |
              +--jade.tools.sniffer.Agent

public class Agent
extends TreeData
implements java.io.Serializable

Extends class TreeData and adds properties and methods for representing agents on the Agent Canvas as rectangles.

See Also:
TreeData, Serialized Form

Field Summary
static int bRet
           
protected static MMCanvas canvAgent
           
static java.awt.Color[] color
           
static int DUMMY
           
static int hRet
           
static int i
           
 boolean onCanv
          This flag is true for agents on canvas and false for agents out of the canvas.
static int yRet
           
 
Fields inherited from class jade.tools.sniffer.TreeData
addresses, AddSeparator, AGENT, AGENT_PLATFORM, CONTAINER, ContainerToolTip, currentState, hasLoaded, icons, Level, LevelsNames, name, RUNNING, statesNames, SUPER_NODE, SuperNodeToolTip, SUSPENDED, type
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
Agent()
          Constructor for a special agent called Other which represents every agent not present on the Agent Canvas.
Agent(java.lang.String n)
          Constructor for any named agent to be put on the Agent Canvas
 
Methods inherited from class jade.tools.sniffer.TreeData
addAddress, getAddressesAsString, getChildCount, getIcon, getLevel, getName, getStateName, getToolTipText, getType, isLeaf, loadChildren, setAddresses, setLevel, setName, setState, setType, toString, transState
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

canvAgent

protected static MMCanvas canvAgent

i

public static int i

DUMMY

public static final int DUMMY

color

public static final java.awt.Color[] color

hRet

public static final int hRet

bRet

public static final int bRet

yRet

public static final int yRet

onCanv

public boolean onCanv
This flag is true for agents on canvas and false for agents out of the canvas.
Constructor Detail

Agent

public Agent(java.lang.String n)
Constructor for any named agent to be put on the Agent Canvas

Agent

public Agent()
Constructor for a special agent called Other which represents every agent not present on the Agent Canvas. It is displayed in color grey when every usual agent is displayed in color red and is the first on the left.