Versions in this module Expand all Collapse all v0 v0.0.1 Feb 2, 2020 Changes in this version + type Agg interface + Gather func(a Agg) + Get func() (int64, float64) + Reset func() + Update func(ival int64, fval float64) + type Lp interface + Run func(s *Sim, r *Runner, msgs []interface{}) int64 + type Lpid struct + CreateTick int64 + Id int + RunnerId int + type Runner struct + func (r *Runner) AddLp(s *Sim, lp Lp) Lpid + func (r *Runner) Rand() *rand.Rand + func (r *Runner) RemoveLp(lpid Lpid) + func (r *Runner) UpdateAgg(aggId int, ival int64, fval float64) + type Sim struct + func New(nr int) *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()