Documentation ¶
Index ¶
- type InputArc
- type Net
- type OutputArc
- type Place
- type Runner
- func (r *Runner) Enabled() []*Transition
- func (r *Runner) Fire(id string) error
- func (r *Runner) FireAny() error
- func (r *Runner) InputArcs() []InputArc
- func (r *Runner) Net() Net
- func (r *Runner) OutputArcs() []OutputArc
- func (r *Runner) Places() []Place
- func (r *Runner) Tokens() []Token
- func (r *Runner) Transitions() []Transition
- type Token
- type Transition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Net ¶
type Net struct { Places []Place `json:"places"` Transitions []Transition `json:"transitions"` InputArcs []InputArc `json:"input_arcs"` OutputArcs []OutputArc `json:"output_arcs"` Tokens []Token `json:"tokens"` }
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) Enabled ¶
func (r *Runner) Enabled() []*Transition
func (*Runner) OutputArcs ¶
func (*Runner) Transitions ¶
func (r *Runner) Transitions() []Transition
type Transition ¶
type Transition struct {
ID string `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.