Documentation ¶
Index ¶
- func Main(m Model)
- type BaseModel
- type BaseSim
- func (s *BaseSim) Init(m Model, ts Timespec, tables map[string]Table)
- func (s *BaseSim) Model() Model
- func (s *BaseSim) RunTo(t float64) error
- func (s *BaseSim) RunToEnd() error
- func (s *BaseSim) SetValue(name string, val float64) error
- func (s *BaseSim) Value(name string) (v float64, err error)
- func (s *BaseSim) ValueSeries(name string) (r [2][]float64, err error)
- type Coordinator
- type Data
- type DefaultMap
- type Model
- type ModelMap
- type Sim
- type Table
- type Timespec
- type Var
- type VarMap
- type VarType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseModel ¶
type BaseModel struct { MName string Vars VarMap Defaults DefaultMap Tables map[string]Table }
type BaseSim ¶
type BaseSim struct { Parent Model Time Timespec Coord Coordinator InstanceName string VarNames map[string]string SubSims map[string]BaseSim Series []Data Tables map[string]Table Curr Data Next Data // Calc{Flows,Stocks} are used by the RunTo* functions CalcInitial func(dt float64) CalcFlows func(dt float64) CalcStocks func(dt float64) // contains filtered or unexported fields }
type Coordinator ¶
a coordinator is the syncronization point between model instances and provider of gaming variables.
func NewCoordinator ¶
func NewCoordinator() Coordinator
type DefaultMap ¶
Click to show internal directories.
Click to hide internal directories.