models

package
v0.0.0-...-6648e19 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const LongNodeOnModels = ""

GONGNOTE(LongNodeOnModels): This is an example of a note that could be displayed on a diagram.

It could explain one aspect of the model for intance, describing relations between structs

The text of a UML note refers a comment with the GONGNOTE keyword which is a special case of go Note convention. See example for details in the go code of the models.

This follows the go code convention described in https://pkg.go.dev/go/doc#Note

"A Note represents a marked comment starting with "MARKER(uid): note body". Any note with a marker of 2 or more upper case [A-Z] letters and a uid of at least one character is recognized. The ":" following the uid is optional. Notes are collected in the Package.Notes map indexed by the notes marker."

In the UML diagram, the size of the note is automaticaly computed from the note number of lines (for the width) and the number of characters per line (for the height) in the go code

View Source
const MarkdownNodeOnModels = ""

GONGNOTE(MarkdownNodeOnModels): this is an example of an Markdown note It uses the DocLink convention for referencing Identifiers In this case models.Line, models.Point and models.Line.Start models.LineTypeString are referenced in the go code

This is a title

## This is a sub title

- some comment Some comment

View Source
const ShortNodeOnModels = ""

GONGNOTE(ShortNodeOnModels): this is an example of a short note It uses the DocLink convention for referencing Identifiers In this case models.Line, models.Point and models.Line.Start models.LineTypeString are referenced in the go code

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	Name string

	Start *Point
	End   *Point

	CreationDate time.Time

	JourneyTime time.Duration

	Type LineTypeString

	VeryLongLongLongLongLongLongField string
}

Line is a the line between Start and End

type LineTypeInt

type LineTypeInt int
const (
	CONTINUOUS_ZERO LineTypeInt = iota
	DOTTED_ONE
)

values for EnumType

type LineTypeString

type LineTypeString string
const (
	CONTINUOUS LineTypeString = "CONTINUOUS"
	DOTTED     LineTypeString = "DOTTED"
)

values for EnumType

type Point

type Point struct {
	Name string

	Z float64
	X float64
	Y float64

	CreatedAt time.Time
}

A Point is a 2 dimensional coordinate (X,Y) on a plane

type PointExclusiveSet

type PointExclusiveSet struct {
	Name string

	Points []*Point
}

type PointNonExclusiveSet

type PointNonExclusiveSet struct {
	Name string

	Points []*PointUse
}

type PointUse

type PointUse struct {
	Name   string
	Points *Point
}

type SimulationStage

type SimulationStage string

swagger:enum SimulationStage

const (
	BEFORE SimulationStage = "BEFORE" // iota // Parse the spinosa model (temp)
	AFTER  SimulationStage = "AFTER"
)

values for Action Type

type StageStruct

type StageStruct struct {
}

Jump to

Keyboard shortcuts

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