Package com.uc4.communication.requests
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 java.lang.Object implements ITreeItem
Represents a node in theNavigatorAgentTree
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<NavigatorAgentTree.AgentNode>
childIterator()
Returns an Iterator which can be used to step through the children of thisITreeItem
.int
getClient()
Returns the corresponding client of the Agent.java.lang.String
getId()
Returns the intern id of theAgentNode
.java.lang.String
getName()
Returns the name of thisITreeItem
.int
size()
Returns the number of child items of thisITreeItem
.TrafficLight
trafficLight()
Returns the traffic light information of thisITreeItem
.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ITreeItem
Returns the name of thisITreeItem
.
-
size
public int size()
Description copied from interface:ITreeItem
Returns the number of child items of thisITreeItem
.
-
childIterator
public java.util.Iterator<NavigatorAgentTree.AgentNode> childIterator()
Description copied from interface:ITreeItem
Returns an Iterator which can be used to step through the children of thisITreeItem
.- Specified by:
childIterator
in interfaceITreeItem
- Returns:
- Iterator containing the children of this
ITreeItem
-
trafficLight
public TrafficLight trafficLight()
Description copied from interface:ITreeItem
Returns the traffic light information of thisITreeItem
.- Specified by:
trafficLight
in interfaceITreeItem
- Returns:
TrafficLight
-
getId
public java.lang.String getId()
Returns the intern id of theAgentNode
.- Returns:
- intern id
-
getClient
public int getClient()
Returns the corresponding client of the Agent.- Returns:
- Corresponding client of the Agent
-
-