Documentation ¶
Index ¶
- type Agg
- type Lp
- type Lpid
- type Runner
- type Sim
- func (s *Sim) AddLp(r int, lp Lp) (Lpid, error)
- func (s *Sim) CreateMax() int
- func (s *Sim) CreateMin() int
- func (s *Sim) CreateSum() int
- func (s *Sim) CurrentTick() int64
- func (s *Sim) GetLp(lpid Lpid) (Lp, error)
- func (s *Sim) NumRunner() int
- func (s *Sim) ReadAgg(aggId int) (int64, float64)
- func (s *Sim) Run(stop func(s *Sim) bool)
- func (s *Sim) RunSteps(nStep int64)
- func (s *Sim) Start()
- func (s *Sim) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lp ¶
Logic Process, which can run at certain tic. Run should return
- positive int64, means this lp should be run again, at tic + ret
- 0, means put this lp to sleep.
- -1, means this lp should die,
Click to show internal directories.
Click to hide internal directories.