tubes.routing.Router(object) class documentationtubes.routing
(View In Hierarchy)
A drain with multiple founts that consumes Routed(IX)
from its input and produces IX to its outputs.
| Instance Variable | drain | The input to this Router. (type: IDrain) |
| Method | __init__ | Undocumented |
| Method | newRoute | Create a new route. |
| Instance Variable | _out | A fan-out that consumes Routed(X)
and produces X. (type: Out) |
Create a new route.
A route has two uses; first, it is an IFount that you can flow to
a drain.
Second, it is the "where" parameter passed to to. Each value sent to Router.drain should
be a to constructed with a
value returned from this method as the "where" parameter.
| Parameters | name | Give the route a name for debugging purposes. (type: native str) |
| Returns | IFount | |