v2m0

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	String ParameterType = "string"
	Double ParameterType = "double"

	Prog     RelationType = "prog"
	Constr   RelationType = "constr"
	Simple   RelationType = "simple"
	Ifclause RelationType = "ifclause"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInfo

type BaseInfo struct {
	ID          string `xml:"id,attr"`
	ShortName   string `xml:"shortName,attr"`
	Description string `xml:"description,attr"`
}

type Class

type Class struct {
	BaseInfo
	Classes struct {
		Classes []Class `xml:"class"`
	} `xml:"classes"`
	Rules struct {
		Rules []Rule `xml:"rule"`
	} `xml:"rules"`
	Constraints struct {
		Constraints []Rule `xml:"constraint"`
	} `xml:"constraints,omitempty"`
	Parameters struct {
		Parameters []Parameter `xml:"parameter"`
	} `xml:"parameters"`
}

type Model

type Model struct {
	BaseInfo
	XMLName          xml.Name `xml:"model"`
	FormatXMLVersion string   `xml:"formatXmlVersion,attr"`
	Class            Class    `xml:"class"`
	Relations        struct {
		Relations []Relation `xml:"relation"`
	} `xml:"relations"`
}

type Parameter

type Parameter struct {
	BaseInfo
	Type         string `xml:"type,attr"`
	DefaultValue string `xml:"defaultValue,attr"`
}

type ParameterType

type ParameterType string

type Relation

type Relation struct {
	BaseInfo
	OutObjects   string `xml:"outObj,attr"`
	InObjects    string `xml:"inObj,attr"`
	RelationType string `xml:"relationType,attr"`
	Script       string `xml:",innerxml"`
}

type RelationType

type RelationType string

type Rule

type Rule struct {
	BaseInfo
	RelationID string `xml:"relation,attr"`
	InitIDs    string `xml:"initId,attr"`
	ResultIDs  string `xml:"resultId,attr"`
}

Jump to

Keyboard shortcuts

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