Documentation ¶
Index ¶
- Constants
- func LogSleep(logMu, logSigma float64, unit time.Duration)
- type Deserialiser
- type Generator
- type Manager
- func (m *Manager) Add(messages uint)
- func (m *Manager) Beta() uint
- func (m *Manager) DXY(unit time.Duration) (dx, dy float64)
- func (m *Manager) Message() chan struct{}
- func (m *Manager) MuP() (float64, bool)
- func (m *Manager) Q() uint
- func (m *Manager) SetB() chan float64
- func (m *Manager) X() uint
- func (m *Manager) XmY() uint
- func (m *Manager) Y() uint
- type Messenger
- type Plant
- type Queue
- type Serialiser
- type Worker
Constants ¶
View Source
const MAX_P_UNIT = 30000
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deserialiser ¶
type Deserialiser struct {
// contains filtered or unexported fields
}
implements Messenger
func NewDeserialiser ¶
func NewDeserialiser(filename string) (*Deserialiser, error)
func (*Deserialiser) Initial ¶
func (d *Deserialiser) Initial() uint
func (*Deserialiser) Start ¶
func (d *Deserialiser) Start(receiver chan struct{})
func (*Deserialiser) Wait ¶
func (d *Deserialiser) Wait()
type Queue ¶
type Queue struct {
Send, Recv chan struct{}
// contains filtered or unexported fields
}
type Serialiser ¶
type Serialiser struct {
// contains filtered or unexported fields
}
implements Plant
func NewSerialiser ¶
func NewSerialiser(filename string) *Serialiser
func (*Serialiser) Close ¶
func (s *Serialiser) Close() error
func (*Serialiser) Message ¶
func (s *Serialiser) Message() chan struct{}
func (*Serialiser) Start ¶
func (s *Serialiser) Start(initial uint) error
Click to show internal directories.
Click to hide internal directories.