Documentation
¶
Overview ¶
abst.go is the interface to the abst webinterface
This file is part of GoABM Copyright 2013 by Remo Hertig <remo.hertig@bluewin.ch>
This file is part of GoABM Copyright 2013 by Remo Hertig <remo.hertig@bluewin.ch>
GoABM is a Agent Based Modeling library currently there is only a static 2d grid landscape, see examples/
Index ¶
- Variables
- func GetAbstPath()
- func Init()
- func Random(min, max float64) float64
- type Abst
- type AgentID
- type Agenter
- type FLNMAgent
- type FLNMAgenter
- type FLWMAgent
- type FLWMAgenter
- type FixedLandscapeNoMovement
- type FixedLandscapeWithMovement
- type Landscaper
- type Logger
- type Model
- type Modeler
- type Ruleset
- type Simulation
- type Statistics
Constants ¶
This section is empty.
Variables ¶
var JournaledSimulation bool
var JournaledSimulationZip bool
var LogToFile bool
var OutputDir string
var RunID string
Functions ¶
func GetAbstPath ¶
func GetAbstPath()
Types ¶
type FLNMAgent ¶
type FLNMAgent struct {
*GenericAgent
X int `json:"x"`
Y int `json:"y"`
// contains filtered or unexported fields
}
func (*FLNMAgent) GetRandomNeighbor ¶
type FLNMAgenter ¶
type FLNMAgenter interface {
GetRandomNeighbor() AgentID
}
type FLWMAgent ¶
type FLWMAgent struct {
*GenericAgent
Seqnr AgentID `json:"index"`
X float64 `json:"x"`
Y float64 `json:"y"`
qt.Handle `json:"-"`
// contains filtered or unexported fields
}
func (*FLWMAgent) GetRandomNeighbor ¶
func (*FLWMAgent) MoveRandomly ¶
type FLWMAgenter ¶
type FixedLandscapeNoMovement ¶
type FixedLandscapeNoMovement struct {
Agents []FLNMAgent // library agent object, implements neighbor selection etc.
UserAgents []Agenter // agents from the user
Size int
// contains filtered or unexported fields
}
2d landscape with no movement
func (*FixedLandscapeNoMovement) Dump ¶
func (l *FixedLandscapeNoMovement) Dump() NetworkDump
func (*FixedLandscapeNoMovement) GetAgent ¶
func (l *FixedLandscapeNoMovement) GetAgent(x, y int) Agenter
func (*FixedLandscapeNoMovement) GetAgentById ¶
func (l *FixedLandscapeNoMovement) GetAgentById(id AgentID) Agenter
func (*FixedLandscapeNoMovement) GetAgents ¶
func (l *FixedLandscapeNoMovement) GetAgents() *[]Agenter
func (*FixedLandscapeNoMovement) Init ¶
func (l *FixedLandscapeNoMovement) Init(model Modeler)
type FixedLandscapeWithMovement ¶
type FixedLandscapeWithMovement struct {
Agents []FLWMAgent // library agent object, implements neighbor selection etc.
UserAgents []Agenter // agents from the user
Size int
Sight float64
NAgents int
// contains filtered or unexported fields
}
2d landscape with movement
func (*FixedLandscapeWithMovement) Dump ¶
func (l *FixedLandscapeWithMovement) Dump() NetworkDump
func (*FixedLandscapeWithMovement) GetAgentById ¶
func (l *FixedLandscapeWithMovement) GetAgentById(id AgentID) Agenter
func (*FixedLandscapeWithMovement) GetAgents ¶
func (l *FixedLandscapeWithMovement) GetAgents() *[]Agenter
func (*FixedLandscapeWithMovement) Init ¶
func (l *FixedLandscapeWithMovement) Init(model Modeler)
type Landscaper ¶
type Modeler ¶
type Modeler interface {
LandscapeAction()
Init(interface{}) //Landscaper)
CreateAgent(interface{}) Agenter
InitRand()
}
type Ruleset ¶
func (*Ruleset) IsRuleActive ¶
type Simulation ¶
type Simulation struct {
Features int
Traits int
Landscape Landscaper
Stats Statistics
Model Modeler
Log Logger
AbstInterface Abst
}
func (*Simulation) Init ¶
func (s *Simulation) Init()
func (*Simulation) Step ¶
func (s *Simulation) Step()
func (*Simulation) Stop ¶
func (s *Simulation) Stop()
type Statistics ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
axelrod_moving
command
An extension to Robert Axelrods ABM model of disseminating culture [1] [1]: Axelrod, Robert.
|
An extension to Robert Axelrods ABM model of disseminating culture [1] [1]: Axelrod, Robert. |
|
axelrod_static
command
An go implementation of Robert Axelrods ABM model of disseminating culture [1].
|
An go implementation of Robert Axelrods ABM model of disseminating culture [1]. |