models

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answers

type Answers []string

type AssetNode

type AssetNode struct {
	Criticality Criticality `json:"criticality"`
}

type BaseNode

type BaseNode struct {
	ID          uuid.UUID   `json:"id"`
	Type        NodeType    `json:"nodeType"`
	SubType     NodeSubType `json:"nodeSubType"`
	Origin      *Origin     `json:"origin,omitempty"`
	Label       string      `json:"label"`
	Description string      `json:"description"`
	Tags        string      `json:"tags"`
}

Node represent a hierarchy node

type Criticality

type Criticality string
const (
	CriticalityA Criticality = "criticality_a"
	CriticalityB Criticality = "criticality_b"
	CriticalityC Criticality = "criticality_c"
)

type InspectionPoint

type InspectionPoint struct {
	ValueType   ValueType `json:"valueType"`
	NumericUnit string    `json:"unit"`
	Answers     Answers   `json:"answers"`

	VisualizationType     VisualizationType `json:"visualizationType"`
	VisualizationMinValue string            `json:"visualizationMinValue"`
	VisualizationMaxValue string            `json:"visualizationMaxValue"`
}

type MeasurementPoint

type MeasurementPoint struct {
	Bearing         int32           `json:"bearing"`
	Angular         Orientation     `json:"orientation"`
	MeasurementType MeasurementType `json:"measurementType"`
	Shaft           string          `json:"shaft"`
	ShaftSide       ShaftSide       `json:"shaftSide"`
}

type MeasurementType

type MeasurementType string
const (
	Displacement MeasurementType = "displacement"
	Acceleration MeasurementType = "acceleration"
	Velocity     MeasurementType = "velocity"
	Temperature  MeasurementType = "temperature"
	DCGAP        MeasurementType = "dc_gap"
	AMPLPHASE    MeasurementType = "ampl_phase"
	BOV          MeasurementType = "bov"
	Speed        MeasurementType = "speed"
	Envelope3    MeasurementType = "envelope_3"
	Envelope2    MeasurementType = "envelope_2"
)

type Node

type NodeSubType

type NodeSubType string
const (
	NodeSubTypeCompany            NodeSubType = "company"
	NodeSubTypeSite               NodeSubType = "site"
	NodeSubTypePlant              NodeSubType = "plant"
	NodeSubTypeShip               NodeSubType = "ship"
	NodeSubTypeSystem             NodeSubType = "system"
	NodeSubTypeFunctionalLocation NodeSubType = "functional_location"
	NodeSubTypeAsset              NodeSubType = "asset"
	NodeSubTypeMeasurementPoint   NodeSubType = "measurement_point"
	NodeSubTypeInspectionPoint    NodeSubType = "inspection_point"
)

type NodeType

type NodeType string
const (
	NodeTypeCompany            NodeType = "company"
	NodeTypeSite               NodeType = "site"
	NodeTypePlant              NodeType = "plant"
	NodeTypeSystem             NodeType = "system"
	NodeTypeFunctionalLocation NodeType = "functional_location"
	NodeTypeAsset              NodeType = "asset"
	NodeTypeMeasurementPoint   NodeType = "measurement_point"
	NodeTypeInspectionPoint    NodeType = "inspection_point"
)

type Orientation

type Orientation string
const (
	Axial      Orientation = "axial"
	Radial     Orientation = "radial"
	Horizontal Orientation = "horizontal"
	Vertical   Orientation = "vertical"
)

type Origin

type Origin struct {
	ID       string `json:"id"`
	Type     string `json:"type"`
	Provider string `json:"provider"`
}

type Relation

type Relation struct {
	ID     uuid.UUID `json:"id"`
	FromID uuid.UUID `json:"fromId"`
	ToID   uuid.UUID `json:"toId"`
}

Relation represents a relation between two nodes

type ShaftSide

type ShaftSide string
const (
	DE  ShaftSide = "de"
	NDE ShaftSide = "nde"
)

type ValueType

type ValueType string
const (
	ValueTypeNumeric      ValueType = "numeric"
	ValueTypeSingleChoice ValueType = "single_choice"
	ValueTypeMultiChoice  ValueType = "multi_choice"
)

type VisualizationType

type VisualizationType string

VisualizationType - defines visualization type when value type is numeric

const (
	VisualizationTypeNone          VisualizationType = "visualization_none"
	VisualizationTypeCircularGauge VisualizationType = "visualization_circular_gauge"
	VisualizationTypeLevelGauge    VisualizationType = "visualization_level_gauge"
)

Constants for VisualizationType

Jump to

Keyboard shortcuts

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