Package: inet.queueing.shaper
TokenBucket
compound moduleThis module implements a parameterizable token bucket algorithm.
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Properties
Name | Value | Description |
---|---|---|
display | i=block/buffer |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Source code
// // This module implements a parameterizable token bucket algorithm. // module TokenBucket like ITrafficConditioner { parameters: @display("i=block/buffer"); gates: input in @labels(push); output out @labels(pull); submodules: queue: <default("DropTailQueue")> like IPacketQueue { parameters: @display("p=150,120"); } server: <default("TokenBasedServer")> like IPacketServer { parameters: @display("p=350,120"); } connections: in --> { @display("m=w"); } --> queue.in; queue.out --> server.in; server.out --> { @display("m=e"); } --> out; }File: src/inet/queueing/shaper/TokenBucket.ned