Documentation
¶
Index ¶
- Constants
- type Engine
- func (e *Engine) Bootstrap(initialState map[string]interface{}, ppWakeup int, ppLook int, ppCompute int, ...) error
- func (e *Engine) Init(numRows, numCols int) error
- func (e *Engine) InitialState() (int, map[string]interface{}, int, int, int, int, error)
- func (e *Engine) IsRunning() bool
- func (e *Engine) LoadScripts() error
- func (e *Engine) Particle(p *Particle, neighbors1 []string, neighbors2 []string, neighbors1Deg []int) (string, error)
- func (e *Engine) Scheduler(particles []interface{}, states []interface{}) ([]interface{}, error)
- func (e *Engine) SelectScript(i int) (string, error)
- func (e *Engine) SetAsyncSheduler()
- func (e *Engine) SetSyncSheduler()
- func (e *Engine) Start()
- func (e *Engine) Stop()
- func (e *Engine) Update(eTick *chan int)
- type InnerState
- type Particle
- func (p *Particle) Awake() bool
- func (p *Particle) GetDeg() int
- func (p *Particle) GetNeighborsString() ([]string, []string)
- func (p *Particle) GetStateN() int
- func (p *Particle) GetStateS(state *State) string
- func (p *Particle) Init() *Particle
- func (p *Particle) Round() int
- func (p *Particle) SetDeg(n int) error
- func (p *Particle) SetNeighbors(n1, n2 []State) error
- func (p *Particle) SetNeighborsDeg(n1Deg []int) error
- func (p *Particle) SetStateN(n int) error
- func (p *Particle) SetStateS(s string) error
- func (p *Particle) Sleep() bool
- type Phases
- type Renderer
- type Scheduler
- type State
Constants ¶
View Source
const ( ScreenWidth = 800 ScreenHeight = 600 StatusBarDelay = 60 DefaultDPI = 96 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) InitialState ¶
func (*Engine) LoadScripts ¶
func (*Engine) SetAsyncSheduler ¶ added in v1.1.0
func (e *Engine) SetAsyncSheduler()
func (*Engine) SetSyncSheduler ¶ added in v1.1.0
func (e *Engine) SetSyncSheduler()
type Particle ¶
type Particle struct {
// contains filtered or unexported fields
}
func (*Particle) GetNeighborsString ¶ added in v1.1.0
func (*Particle) SetNeighbors ¶
func (*Particle) SetNeighborsDeg ¶ added in v1.1.0
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func (*Renderer) InitImages ¶
Click to show internal directories.
Click to hide internal directories.