- All Known Implementing Classes:
- BurstyTimeDistribution, ECGTimeDistribution, EEGTimeDistribution, NormalTimeDistribution, RandomTimeDistribution, RegularTimeDistribution, ThoraxTimeDistribution
public interface PacketTimeDistribution
The PacketTimeDistribution interface defines an object which specifies some
sort of time distribution pattern for packet transmissions. A
PacketTimeDistribution has a specified type (Poisson, bursty, etc); any class
implementing the interface must have a method getType() which returns a
typeId (an int) designating the type of distribution it simulates.
Additionally, a class implementing PacketTimeDistribution must define a
method nextInterval() of return type int which takes no arguments.
nextInterval() should return a time, in ms, before the next packet will be
sent following the class' distribution type.
- Author:
- Kira Lindburg