Version: v0.0.0-...-1354865 Latest Latest

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 2 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Arc

type Arc struct {
	Type          string `xml:"type"`
	SourceId      int    `xml:"sourceId"`
	DestinationId int    `xml:"destinationId"`
	Multiplicity  int    `xml:"multiplicity"`

type PFlow

type PFlow struct {
	// contains filtered or unexported fields

func LoadFile

func LoadFile(path string) (*PFlow, error)

func (*PFlow) Document

func (p *PFlow) Document() document

func (*PFlow) Marshal

func (p *PFlow) Marshal() ([]byte, error)

func (*PFlow) Unmarshal

func (p *PFlow) Unmarshal(data []byte) error

type Place

type Place struct {
	Id       int    `xml:"id"`
	X        int    `xml:"x"`
	Y        int    `xml:"y"`
	Label    string `xml:"label"`
	Tokens   uint64 `xml:"tokens"`
	IsStatic bool   `xml:"isStatic"`
	Capacity uint64 `xml:"capacity"`

type ReferenceArc

type ReferenceArc struct {
	PlaceId  int `xml:"placeId"`
	SubnetId int `xml:"subnetId"`

type ReferencePlace

type ReferencePlace struct {
	Id               int `xml:"id"`
	X                int `xml:"x"`
	Y                int `xml:"y"`
	ConnectedPlaceId int `xml:"connectedPlaceId"`

type Role

type Role struct {
	Id            string         `xml:"id"`
	Name          string         `xml:"name"`
	TransitionIds []TransitionId `xml:"transitionId"`
	CreateCase    bool           `xml:"createCase"`
	DestroyCase   bool           `xml:"destroyCase"`

type SubNet

type SubNet struct {
	Id              string           `xml:"id"`
	X               int              `xml:"x"`
	Y               int              `xml:"y"`
	Label           string           `xml:"label"`
	Places          []Place          `xml:"place"`
	Transitions     []Transition     `xml:"transition"`
	Arcs            []Arc            `xml:"arc"`
	SubNets         []SubNet         `xml:"subnet"`
	ReferencePlaces []ReferencePlace `xml:"referencePlace"`
	ReferenceArcs   []ReferenceArc   `xml:"referenceArc"`

type Transition

type Transition struct {
	Id    int    `xml:"id"`
	X     int    `xml:"x"`
	Y     int    `xml:"y"`
	Label string `xml:"label"`

type TransitionId

type TransitionId int

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL