vasm

package
v2.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(m *PetriNet, initialVec ...Vector) Process

Execute run the m

Types

type StateMachine

type StateMachine struct {
	// contains filtered or unexported fields
}

func (*StateMachine) Fire

func (sm *StateMachine) Fire(op Op) (ok bool, msg string, out Vector)

func (*StateMachine) GetState

func (sm *StateMachine) GetState() Vector

func (*StateMachine) Inhibited

func (sm *StateMachine) Inhibited(op Op) (inhibited bool, msg string)

func (*StateMachine) TestFire

func (sm *StateMachine) TestFire(op Op) (flag bool, msg string, out Vector)

func (*StateMachine) TokenCount

func (sm *StateMachine) TokenCount(label string) int64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL