org.iids.aos.gui.structs
Class Agent

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.iids.aos.gui.structs.Struct
          extended by org.iids.aos.gui.structs.Agent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class Agent
extends Struct

Author:
rjtimmer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.iids.aos.gui.structs.Struct
children, name, parent
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, EMPTY_ENUMERATION, userObject
 
Constructor Summary
Agent(java.lang.String name, AgentServer parent)
          Creates a new instance of Agents
 
Method Summary
 boolean allowsChildren()
           
 AgentID getAgentID()
           
 java.lang.Class<? extends Struct> getChildClass()
          Returns the allowed Class type for child nodes.
 boolean refreshImpl()
          Refresh implementation.
 
Methods inherited from class org.iids.aos.gui.structs.Struct
addChild, automaticChildShutdown, children, compareTo, contains, equals, find, find, findChild, findStructByPath, findStructByQueue, getAllowsChildren, getCanonicalPath, getChildAt, getChildCount, getChildren, getHost, getIndex, getLocation, getName, getParent, getRoot, getService, getSiblings, getTreePath, getWorld, hasLocalService, hasRemoteService, isExpanded, isLeaf, isShuttingDown, refresh, refresh, removeChild, setExpanded, setName, setParent, setReadOnly, setService, shutdown, subtreeHasLocalService, subtreeIsRefreshing, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, 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
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Agent

public Agent(java.lang.String name,
             AgentServer parent)
Creates a new instance of Agents

Method Detail

allowsChildren

public boolean allowsChildren()
Overrides:
allowsChildren in class Struct

getChildClass

public java.lang.Class<? extends Struct> getChildClass()
Description copied from class: Struct
Returns the allowed Class type for child nodes. Atttempting to operate the tree with different child nodes may result in an exception (for example @link #addChild).

Specified by:
getChildClass in class Struct

getAgentID

public AgentID getAgentID()

refreshImpl

public boolean refreshImpl()
Description copied from class: Struct
Refresh implementation. Called from the recursive refresh implementation in Struct.refresh(). This makes sure that no duplicate refresh operations are performed (??? is this still needed ??? XXX).

Specified by:
refreshImpl in class Struct
Returns:
true if the tree structure was changed, false otherwise.


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.