Struct caminos_lib::traffic::Sum [−][src]
pub struct Sum { /* fields omitted */ }
Expand description
Traffic which is the sum of a list of oter traffics. While it will clearly work when the sum of the generation rates is at most 1, it should behave nicely enough otherwise.
Implementations
Trait Implementations
Get the total memory currently being employed by the implementing type. Both stack and heap.
Prints by stdout how much memory is used per component.
Get an estimation on how much memory the type could reach during the simulation.
Returns a new message following the indications of the traffic
Get its probability of generating per cycle
If the message was generated by the traffic updates itself and returns true
Indicates if the traffic is not going to generate any more messages.