SkillAgentSearch skills...

Petrinet

golang library for petri nets

Install / Use

/learn @veith/Petrinet
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

a petrinet library

PACKAGE DOCUMENTATION

TYPES

// petrinet is a simple petri net execution library
package petrinet

type Net struct {
    InputMatrix        [][]int                `json:"-"`                   // Input Matrix
    OutputMatrix       [][]int                `json:"-"`                   // Output Matrix
    ConditionMatrix    [][]string             `json:"-"`                   // Condition Matrix
    State              []int                  `json:"-"`                   // State
    Variables          map[string]interface{} `json:"variables"`           // variablen die mit dem Prozess mitlaufen
    EnabledTransitions []int                  `json:"enabled_transitions"` // list of transitions which can be fired
}

func (f *Net) Fire(transition int) error
    fires an enabled transition.

func (net *Net) Init()

Related Skills

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated1y ago
Forks4

Languages

Go

Security Score

55/100

Audited on Jan 14, 2025

No findings