model

package
v0.0.0-...-a19f7d7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 16

Documentation

Index

Constants

View Source
const (
	EVENT             = models.EVENT
	REQUEST           = models.REQUEST
	EVENT_AND_REQUEST = models.EVENT_AND_REQUEST
)
View Source
const (
	String  = models.String
	Integer = models.Integer
	Float   = models.Float
	Boolean = models.Boolean

	List      = models.List
	Structure = models.Structure
)
View Source
const Optimistic = "optimistic"
View Source
const RDFS_LABEL = "http://www.w3.org/2000/01/rdf-schema#label"
View Source
const RDF_TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
View Source
const SES_ONTOLOGY_ASPECT = "https://senergy.infai.org/ontology/Aspect"
View Source
const SES_ONTOLOGY_CONTROLLING_FUNCTION = "https://senergy.infai.org/ontology/ControllingFunction"

Classes

View Source
const SES_ONTOLOGY_DEVICE_CLASS = "https://senergy.infai.org/ontology/DeviceClass"
View Source
const SES_ONTOLOGY_DEVICE_TYPE = "https://senergy.infai.org/ontology/DeviceType"
View Source
const SES_ONTOLOGY_EXPOSES_FUNCTION = "https://senergy.infai.org/ontology/exposesFunction"
View Source
const SES_ONTOLOGY_HAS_CONCEPT = "https://senergy.infai.org/ontology/hasConcept"

Properties

View Source
const SES_ONTOLOGY_HAS_DEVICE_CLASS = "https://senergy.infai.org/ontology/hasDeviceClass"
View Source
const SES_ONTOLOGY_HAS_SERVICE = "https://senergy.infai.org/ontology/hasService"
View Source
const SES_ONTOLOGY_MEASURING_FUNCTION = "https://senergy.infai.org/ontology/MeasuringFunction"
View Source
const SES_ONTOLOGY_REFERS_TO = "https://senergy.infai.org/ontology/refersTo"
View Source
const SES_ONTOLOGY_SERVICE = "https://senergy.infai.org/ontology/Service"
View Source
const URN_PREFIX = "urn:infai:ses:"

Variables

This section is empty.

Functions

func ServiceIdToTopic

func ServiceIdToTopic(id string) string

Types

type Aspect

type Aspect = models.Aspect

type AspectNode

type AspectNode = models.AspectNode

type Attribute

type Attribute = models.Attribute

type Characteristic

type Characteristic = models.Characteristic

type Concept

type Concept = models.Concept

type ConceptWithCharacteristics

type ConceptWithCharacteristics = models.ConceptWithCharacteristics

type Configurable

type Configurable struct {
	Path             string      `json:"path"`
	CharacteristicId string      `json:"characteristic_id"`
	AspectNode       AspectNode  `json:"aspect_node"`
	FunctionId       string      `json:"function_id"`
	Value            interface{} `json:"value,omitempty"`
	Type             Type        `json:"type,omitempty"`
}

type Content

type Content = models.Content

type ContentVariable

type ContentVariable = models.ContentVariable

type Device

type Device = models.Device

type DeviceClass

type DeviceClass = models.DeviceClass

type DeviceType

type DeviceType = models.DeviceType

type DeviceTypeCriteria

type DeviceTypeCriteria struct {
	DeviceTypeId          string      `json:"device_type_id"`
	ServiceId             string      `json:"service_id"`
	ContentVariableId     string      `json:"content_variable_id"`
	ContentVariablePath   string      `json:"content_variable_path"`
	FunctionId            string      `json:"function_id"`
	Interaction           string      `json:"interaction"`
	IsControllingFunction bool        `json:"controlling_function"`
	DeviceClassId         string      `json:"device_class_id"`
	AspectId              string      `json:"aspect_id"`
	CharacteristicId      string      `json:"characteristic_id"`
	IsVoid                bool        `json:"is_void"`
	Value                 interface{} `json:"value"`
	Type                  Type        `json:"type"`
	IsLeaf                bool        `json:"is_leaf"`
	IsInput               bool        `json:"is_input"`
}

type DeviceTypeSelectable

type DeviceTypeSelectable struct {
	DeviceTypeId       string                         `json:"device_type_id,omitempty"`
	Services           []Service                      `json:"services,omitempty"`
	ServicePathOptions map[string][]ServicePathOption `json:"service_path_options,omitempty"`
}

type Envelope

type Envelope struct {
	DeviceId  string      `json:"device_id,omitempty"`
	ServiceId string      `json:"service_id,omitempty"`
	Value     interface{} `json:"value"`
}

type FilterCriteria

type FilterCriteria struct {
	FunctionId    string `json:"function_id"`
	DeviceClassId string `json:"device_class_id"`
	AspectId      string `json:"aspect_id"`
}

type Function

type Function = models.Function

type Hub

type Hub = models.Hub

type Interaction

type Interaction = models.Interaction

type Location

type Location = models.Location

type Metadata

type Metadata struct {
	Version              int64       `json:"version,omitempty"`
	Device               Device      `json:"device"`
	Service              Service     `json:"service"`
	Protocol             Protocol    `json:"protocol"`
	OutputPath           string      `json:"output_path,omitempty"`        //only for version >= 3
	OutputFunctionId     string      `json:"output_function_id,omitempty"` //only for version >= 3 if no OutputPath is known
	OutputAspectNode     *AspectNode `json:"output_aspect_node,omitempty"` //only for version >= 3 if no OutputPath is known
	InputCharacteristic  string      `json:"input_characteristic,omitempty"`
	OutputCharacteristic string      `json:"output_characteristic,omitempty"`
	ContentVariableHints []string    `json:"content_variable_hints,omitempty"`
	ResponseTo           string      `json:"response_to,omitempty"`
	ErrorTo              string      `json:"error_to,omitempty"`
}

type Protocol

type Protocol = models.Protocol

type ProtocolMsg

type ProtocolMsg struct {
	Request  ProtocolRequest  `json:"request"`
	Response ProtocolResponse `json:"response"`
	TaskInfo TaskInfo         `json:"task_info"`
	Metadata Metadata         `json:"metadata"`
	Trace    []Trace          `json:"trace,omitempty"`
}

type ProtocolRequest

type ProtocolRequest struct {
	Input map[string]string `json:"input"`
}

type ProtocolResponse

type ProtocolResponse struct {
	Output map[string]string `json:"output"`
}

type ProtocolSegment

type ProtocolSegment = models.ProtocolSegment

type RemoteInfo

type RemoteInfo struct {
	Ip       string
	Port     string
	Protocol string
}

type ResourceRights

type ResourceRights = permv2.ResourcePermissions

type Service

type Service = models.Service

type ServicePathOption

type ServicePathOption struct {
	ServiceId             string         `json:"service_id"`
	Path                  string         `json:"path"`
	CharacteristicId      string         `json:"characteristic_id"`
	AspectNode            AspectNode     `json:"aspect_node"`
	FunctionId            string         `json:"function_id"`
	IsVoid                bool           `json:"is_void"`
	Value                 interface{}    `json:"value,omitempty"`
	IsControllingFunction bool           `json:"is_controlling_function"`
	Configurables         []Configurable `json:"configurables,omitempty"`
	Type                  Type           `json:"type,omitempty"`
}

type TaskInfo

type TaskInfo struct {
	WorkerId            string `json:"worker_id"`
	TaskId              string `json:"task_id"`
	ProcessInstanceId   string `json:"process_instance_id"`
	ProcessDefinitionId string `json:"process_definition_id"`
	CompletionStrategy  string `json:"completion_strategy"`
	Time                string `json:"time"`
	TenantId            string `json:"tenant_id"`
}

type Trace

type Trace struct {
	TimeUnit  string `json:"time_unit"`
	Timestamp int64  `json:"timestamp"`
	Location  string `json:"location"`
}

type Type

type Type = models.Type

Jump to

Keyboard shortcuts

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