Class NavigatorAgentTree.AgentNode

java.lang.Object
com.uc4.communication.requests.NavigatorAgentTree.AgentNode
All Implemented Interfaces:
ITreeItem
Direct Known Subclasses:
NavigatorAgentTree.AgentLeaf
Enclosing class:
NavigatorAgentTree

public static class NavigatorAgentTree.AgentNode extends Object implements ITreeItem
Represents a node in the NavigatorAgentTree.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ITreeItem
      Returns the name of this ITreeItem.
      Specified by:
      getName in interface ITreeItem
      Returns:
      name of this ITreeItem
    • size

      public int size()
      Description copied from interface: ITreeItem
      Returns the number of child items of this ITreeItem.
      Specified by:
      size in interface ITreeItem
      Returns:
      number of child items of this ITreeItem
    • childIterator

      public Iterator<NavigatorAgentTree.AgentNode> childIterator()
      Description copied from interface: ITreeItem
      Returns an Iterator which can be used to step through the children of this ITreeItem.
      Specified by:
      childIterator in interface ITreeItem
      Returns:
      Iterator containing the children of this ITreeItem
    • trafficLight

      public TrafficLight trafficLight()
      Description copied from interface: ITreeItem
      Returns the traffic light information of this ITreeItem.
      Specified by:
      trafficLight in interface ITreeItem
      Returns:
      TrafficLight
    • getId

      public String getId()
      Returns the intern id of the AgentNode.
      Returns:
      intern id
    • getClient

      public int getClient()
      Returns the corresponding client of the Agent.
      Returns:
      Corresponding client of the Agent