Documentation
¶
Index ¶
- type InputArc
- type Net
- type OutputArc
- type Place
- type PlaceID
- type Runner
- func (r *Runner) Enabled() []*Transition
- func (r *Runner) Fire(id TransitionID) 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 TokenID
- type Transition
- type TransitionID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputArc ¶
type InputArc struct {
FromPlaceID PlaceID `json:"from_id"`
ToTransitionID TransitionID `json:"to_id"`
Expr string `json:"expr"`
}
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 OutputArc ¶
type OutputArc struct {
FromTransitionID TransitionID `json:"from_id"`
ToPlaceID PlaceID `json:"to_id"`
Expr string `json:"expr"`
}
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) Enabled ¶
func (r *Runner) Enabled() []*Transition
func (*Runner) Fire ¶
func (r *Runner) Fire(id TransitionID) error
func (*Runner) OutputArcs ¶
func (*Runner) Transitions ¶
func (r *Runner) Transitions() []Transition
type Transition ¶
type Transition struct {
ID TransitionID `json:"id"`
}
type TransitionID ¶
type TransitionID string
Click to show internal directories.
Click to hide internal directories.