| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package terrain :: Module navgraphs :: Class NavGraph |
|
DGraph--+ |UGraph--+ | NavGraph
Path| Method Summary | |
|---|---|
__init__(self,
name)
| |
Adds new edge. | |
Creates new node and adds it to graph. | |
Clears transition link for node. | |
Sets self to encoded values. | |
Returns encoded description of self. | |
Encodes edge data. | |
enterNode(self,
entity)
| |
exitNode(self,
entity)
| |
Collects nodes in specified area. | |
svs_simulation.simdata.simdatalib.SimData
|
Returns simulation data for edge. |
Returns a list of valid edges. | |
Returns a list of valid nodes. | |
Checks if area can be entered. | |
Checks if edge is hidden or not. | |
Checks if node is hidden or not. | |
Removes an edge from the graph. | |
Removes listed edges from graph. | |
Removes node from the graph. | |
Attaches simulation data to edge. | |
Sets transition link for node. | |
| Inherited from UGraph | |
User friendly representation | |
Adds a directed edge going from head to
tail. | |
The total degree of a node | |
The total degree of a node | |
Reports an error message | |
Returns the number of edges | |
| Inherited from DGraph | |
Test whether a node is in the graph | |
Iterates over all nodes in the graph | |
Returns the number of nodes | |
User friendly and verbose representation | |
Creates a new node with a node. | |
Returns a list containing all incoming and outging edges | |
Returns the data associated with an edge | |
Returns the head of the edge. | |
Returns a list of all edge_ids in the graph | |
Returns the head and the tail of an edge. | |
Returns the tail of the edge. | |
Returns the edge that connects the head to tail | |
Sets the data for an edge | |
Gets the wt of the edge | |
Hides an edge from the graph. | |
Hides a node from the graph. | |
Returns the number of incoming edges | |
Returns a list of the incoming edges | |
Returns a list of nodes connected by incoming edges. | |
Returns the data associated with a node | |
Returns a list of the nodes in the graph. | |
Returns the number of hidden edges. | |
Returns the number of hidden nodes. | |
Returns the number of nodes | |
Returns the number of outgoing edges | |
Returns a list of the outgoing edges. | |
Returns a list of nodes connected by outgoing edges. | |
Restores all hidden edges. | |
Restores all hidden nodes. | |
Restores a hidden edge. | |
Restores a hidden node | |
Sets the data for an edge | |
Sets the wt of the edge | |
| Method Details |
|---|
addEdge(self, head, tail)Adds new edge. Checks that edge does not already exist, if it does return the existing node rather than a new one. |
addNode(self, x, y, simdata=None)Creates new node and adds it to graph. Checks that node does not already exist, if it does return the existing node rather than a new one. |
clearTransitionNode(self, node)Clears transition link for node. |
decode(self, data)Sets self to encoded values. @type data:dict |
encode(self)Returns encoded description of self. @rtype:dict |
encodeEdge(self, edge)Encodes edge data. |
getNodesInArea(self, area)Collects nodes in specified area. |
getSimDataForEdge(self, edge)Returns simulation data for edge. |
getValidEdges(self)Returns a list of valid edges. |
getValidNodes(self)Returns a list of valid nodes. |
isAccessibleArea(self, area)Checks if area can be entered. |
isValidEdge(self, edge)Checks if edge is hidden or not. |
isValidNode(self, node)Checks if node is hidden or not. |
removeEdge(self, edge)Removes an edge from the graph. This actually 'hides' the edge, which can be restored later. See: http://pygraphlib.sourceforge.net/doc/index.html |
removeEdges(self, edges)Removes listed edges from graph. |
removeNode(self, node)Removes node from the graph. This actually 'hides' the node, which can be restored later. See: http://pygraphlib.sourceforge.net/doc/index.html |
setSimDataForEdge(self, edge, simdata)Attaches simulation data to edge.
|
setTransitionNode(self, node, link=None)Sets transition link for node. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:29 2005 | http://epydoc.sf.net |