Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
Descriptor describes a Poisson process.
func (*Descriptor) Equals ¶
func (d *Descriptor) Equals(s *Descriptor) bool
Equals return true if the given Descriptor s is equal to d.
type Fount ¶
Fount is used to produce channel events after delays selected from a Poisson process.
func NewTimer ¶
func NewTimer(desc *Descriptor) *Fount
NewTimer is used to create a new Fount. A subsequent call to the Start method is used to activate the timer.
func (*Fount) DescriptorEquals ¶
func (t *Fount) DescriptorEquals(s *Descriptor) bool
DescriptorEquals returns true if the Fount's Poisson descriptor is equal to the given Poisson descriptor s.
func (*Fount) Next ¶
func (t *Fount) Next()
Next resets the timer to the next Poisson process value. This MUST NOT be called unless the timer has fired.
func (*Fount) NextMax ¶
func (t *Fount) NextMax()
NextMax resets the timer to the maximum possible value.
func (*Fount) SetPoisson ¶
func (t *Fount) SetPoisson(desc *Descriptor)
SetPoisson sets a new Poisson descriptor.
Click to show internal directories.
Click to hide internal directories.