A routing node.
|
|
__cmp__(self,
o)
Compares two RoutingNodes by their id. |
source code
|
|
|
|
|
|
|
|
|
|
cleanup(self)
Clears RoutingNode's route_dist and neighbors |
source code
|
|
|
RoutingNode
|
get_route(self,
node)
Returns the next RoutingNode on the route from this routingNode to
<node> |
source code
|
|
|
[RoutingNode, float]
|
get_route_dist(self,
node)
Returns the next RoutingNode and distance to it on the route from
this routingNode to <node> |
source code
|
|
|
|
get_routes(self)
Yields all distances from this RoutingNode to all nodes as 2-tuples
<n, distance>. |
source code
|
|
|
|
on_visit(self,
visitor)
What has to be done when a Person visits this node in simulation? |
source code
|
|
|
|
set_route(self,
to,
next,
dist)
Sets value of route_next (<next>) and route_dist (<dist>)
for route from this RoutingNode to <to> |
source code
|
|
|
|
setup(self,
nodes_num)
Set up arrays route_next and route_dist with default values |
source code
|
|
|
|
setup2(self,
nodes_num)
Feed arrays route_next and route_dist with routing information to
direct neighbors. |
source code
|
|
|
Boolean
|
update(self,
nodes_num)
Calculate some routing data for all RoutingNodes in self.todo. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|