object

package
v0.0.0-...-6943669 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

TODO: big WIP

Index

Constants

This section is empty.

Variables

View Source
var RegisteredObjectTypes = make(map[any]struct{})

Functions

func ArrayOfP

func ArrayOfP[T any](klass func(arg Arg) (*T, error), fixedLength int, prototype any) func(Args, KWArgs) (PropertyKlass, error)

func ArrayOfPs

func ArrayOfPs[T any](klass func(args Args) (*T, error), fixedLength int, prototype any) func(Args, KWArgs) (PropertyKlass, error)

func ListOfP

func ListOfP[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)

func ListOfPs

func ListOfPs[T any](klass func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)

func RegisterObjectType

func RegisterObjectType(kwargs KWArgs) (any, error)

func SequenceOfP

func SequenceOfP[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)

TODO: finish

func SequenceOfsP

func SequenceOfsP[T any](b func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)

func V2P

func V2P[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)

V2P accepts a function which takes an Arg and maps it to a PropertyKlass

func Vs2P

func Vs2P[T any](b func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)

Vs2P accepts a function which takes an Args and maps it to a PropertyKlass

func WithObjectExtraProperties

func WithObjectExtraProperties(extraProperties []Property) GenericApplier[*_Object]

func WithObjectSupportsCov

func WithObjectSupportsCov(supports bool) GenericApplier[*_Object]

func WithObjectType

func WithObjectType(objectType string) GenericApplier[*_Object]

func WithObject_Properties

func WithObject_Properties(_properties map[string]Property) GenericApplier[*_Object]

func WithPropertyDefault

func WithPropertyDefault(_default any) GenericApplier[*_Property]

func WithPropertyMutable

func WithPropertyMutable(mutable bool) GenericApplier[*_Property]

func WithPropertyOptional

func WithPropertyOptional(optional bool) GenericApplier[*_Property]

Types

type AccessCredentialObject

type AccessCredentialObject struct {
	Object
}

func NewAccessCredentialObject

func NewAccessCredentialObject(options ...Option) (*AccessCredentialObject, error)

type AccessDoorObject

type AccessDoorObject struct {
	Object
}

func NewAccessDoorObject

func NewAccessDoorObject(options ...Option) (*AccessDoorObject, error)

type AccessPointObject

type AccessPointObject struct {
	Object
}

func NewAccessPointObject

func NewAccessPointObject(options ...Option) (*AccessPointObject, error)

type AccessRightsObject

type AccessRightsObject struct {
	Object
}

func NewAccessRightsObject

func NewAccessRightsObject(options ...Option) (*AccessRightsObject, error)

type AccessUserObject

type AccessUserObject struct {
	Object
}

func NewAccessUserObject

func NewAccessUserObject(options ...Option) (*AccessUserObject, error)

type AccessZoneObject

type AccessZoneObject struct {
	Object
}

func NewAccessZoneObject

func NewAccessZoneObject(options ...Option) (*AccessZoneObject, error)

type AccumulatorObject

type AccumulatorObject struct {
	Object
}

func NewAccumulatorObject

func NewAccumulatorObject(options ...Option) (*AccumulatorObject, error)

type AlertEnrollmentObject

type AlertEnrollmentObject struct {
	Object
}

func NewAlertEnrollmentObject

func NewAlertEnrollmentObject(options ...Option) (*AlertEnrollmentObject, error)

type AnalogInputObject

type AnalogInputObject struct {
	Object
}

func NewAnalogInputObject

func NewAnalogInputObject(options ...Option) (*AnalogInputObject, error)

type AnalogOutputObject

type AnalogOutputObject struct {
	Object
}

func NewAnalogOutputObject

func NewAnalogOutputObject(options ...Option) (*AnalogOutputObject, error)

type AnalogValueObject

type AnalogValueObject struct {
	Object
}

func NewAnalogValueObject

func NewAnalogValueObject(options ...Option) (*AnalogValueObject, error)

type AuditLogObject

type AuditLogObject struct {
	Object
}

func NewAuditLogObject

func NewAuditLogObject(options ...Option) (*AuditLogObject, error)

type AuditReporterObject

type AuditReporterObject struct {
	Object
}

func NewAuditReporterObject

func NewAuditReporterObject(options ...Option) (*AuditReporterObject, error)

type AveragingObject

type AveragingObject struct {
	Object
}

func NewAveragingObject

func NewAveragingObject(options ...Option) (*AveragingObject, error)

type BinaryInputObject

type BinaryInputObject struct {
	Object
}

func NewBinaryInputObject

func NewBinaryInputObject(options ...Option) (*BinaryInputObject, error)

type BinaryLightingOutputObject

type BinaryLightingOutputObject struct {
	Object
}

func NewBinaryLightingOutputObject

func NewBinaryLightingOutputObject(options ...Option) (*BinaryLightingOutputObject, error)

type BinaryOutputObject

type BinaryOutputObject struct {
	Object
}

func NewBinaryOutputObject

func NewBinaryOutputObject(options ...Option) (*BinaryOutputObject, error)

type BinaryValueObject

type BinaryValueObject struct {
	Object
}

func NewBinaryValueObject

func NewBinaryValueObject(options ...Option) (*BinaryValueObject, error)

type BitStringValueObject

type BitStringValueObject struct {
	Object
}

func NewBitStringValueObject

func NewBitStringValueObject(options ...Option) (*BitStringValueObject, error)

type CalendarObject

type CalendarObject struct {
	Object
}

func NewCalendarObject

func NewCalendarObject(options ...Option) (*CalendarObject, error)

type ChannelObject

type ChannelObject struct {
	Object
}

func NewChannelObject

func NewChannelObject(options ...Option) (*ChannelObject, error)

type CharacterStringValueObject

type CharacterStringValueObject struct {
	Object
}

func NewCharacterStringValueObject

func NewCharacterStringValueObject(options ...Option) (*CharacterStringValueObject, error)

type CommandObject

type CommandObject struct {
	Object
}

func NewCommandObject

func NewCommandObject(options ...Option) (*CommandObject, error)

type CredentialDataInputObject

type CredentialDataInputObject struct {
	Object
}

func NewCredentialDataInputObject

func NewCredentialDataInputObject(options ...Option) (*CredentialDataInputObject, error)

type DatePatternValueObject

type DatePatternValueObject struct {
	Object
}

func NewDatePatternValueObject

func NewDatePatternValueObject(options ...Option) (*DatePatternValueObject, error)

type DateTimePatternValueObject

type DateTimePatternValueObject struct {
	Object
}

func NewDateTimePatternValueObject

func NewDateTimePatternValueObject(options ...Option) (*DateTimePatternValueObject, error)

type DateTimeValueObject

type DateTimeValueObject struct {
	Object
}

func NewDateTimeValueObject

func NewDateTimeValueObject(options ...Option) (*DateTimeValueObject, error)

type DateValueObject

type DateValueObject struct {
	Object
}

func NewDateValueObject

func NewDateValueObject(options ...Option) (*DateValueObject, error)

type DeviceObject

type DeviceObject struct {
	Object
}

func NewDeviceObject

func NewDeviceObject(options ...Option) (*DeviceObject, error)

type ElevatorGroupObject

type ElevatorGroupObject struct {
	Object
}

func NewElevatorGroupObject

func NewElevatorGroupObject(options ...Option) (*ElevatorGroupObject, error)

type EscalatorObject

type EscalatorObject struct {
	Object
}

func NewEscalatorObject

func NewEscalatorObject(options ...Option) (*EscalatorObject, error)

type EventEnrollmentObject

type EventEnrollmentObject struct {
	Object
}

func NewEventEnrollmentObject

func NewEventEnrollmentObject(options ...Option) (*EventEnrollmentObject, error)

type EventLogObject

type EventLogObject struct {
	Object
}

func NewEventLogObject

func NewEventLogObject(options ...Option) (*EventLogObject, error)

type EventLogRecord

type EventLogRecord struct {
	*Sequence
	// contains filtered or unexported fields
}

func NewEventLogRecord

func NewEventLogRecord(arg Arg) (*EventLogRecord, error)

type EventLogRecordLogDatum

type EventLogRecordLogDatum struct {
	*Choice
	// contains filtered or unexported fields
}

func NewEventLogRecordLogDatum

func NewEventLogRecordLogDatum(arg Arg) (*EventLogRecordLogDatum, error)

type FileObject

type FileObject struct {
	Object
}

func NewFileObject

func NewFileObject(options ...Option) (*FileObject, error)

type GlobalGroupObject

type GlobalGroupObject struct {
	Object
}

func NewGlobalGroupObject

func NewGlobalGroupObject(options ...Option) (*GlobalGroupObject, error)

type GroupObject

type GroupObject struct {
	Object
}

func NewGroupObject

func NewGroupObject(options ...Option) (*GroupObject, error)

type IntegerValueObject

type IntegerValueObject struct {
	Object
}

func NewIntegerValueObject

func NewIntegerValueObject(options ...Option) (*IntegerValueObject, error)

type LargeAnalogValueObject

type LargeAnalogValueObject struct {
	Object
}

func NewLargeAnalogValueObject

func NewLargeAnalogValueObject(options ...Option) (*LargeAnalogValueObject, error)

type LifeSafetyPointObject

type LifeSafetyPointObject struct {
	Object
}

func NewLifeSafetyPointObject

func NewLifeSafetyPointObject(options ...Option) (*LifeSafetyPointObject, error)

type LifeSafetyZoneObject

type LifeSafetyZoneObject struct {
	Object
}

func NewLifeSafetyZoneObject

func NewLifeSafetyZoneObject(options ...Option) (*LifeSafetyZoneObject, error)

type LiftObject

type LiftObject struct {
	Object
}

func NewLiftObject

func NewLiftObject(options ...Option) (*LiftObject, error)

type LightingOutputObject

type LightingOutputObject struct {
	Object
}

func NewLightingOutputObject

func NewLightingOutputObject(options ...Option) (*LightingOutputObject, error)

type LoadControlObject

type LoadControlObject struct {
	Object
}

func NewLoadControlObject

func NewLoadControlObject(options ...Option) (*LoadControlObject, error)

type LoopObject

type LoopObject struct {
	Object
}

func NewLoopObject

func NewLoopObject(options ...Option) (*LoopObject, error)

type MultiStateInputObject

type MultiStateInputObject struct {
	Object
}

func NewMultiStateInputObject

func NewMultiStateInputObject(options ...Option) (*MultiStateInputObject, error)

type MultiStateOutputObject

type MultiStateOutputObject struct {
	Object
}

func NewMultiStateOutputObject

func NewMultiStateOutputObject(options ...Option) (*MultiStateOutputObject, error)

type MultiStateValueObject

type MultiStateValueObject struct {
	Object
}

func NewMultiStateValueObject

func NewMultiStateValueObject(options ...Option) (*MultiStateValueObject, error)

type NetworkPortObject

type NetworkPortObject struct {
	Object
}

func NewNetworkPortObject

func NewNetworkPortObject(options ...Option) (*NetworkPortObject, error)

type NetworkSecurityObject

type NetworkSecurityObject struct {
	Object
}

func NewNetworkSecurityObject

func NewNetworkSecurityObject(options ...Option) (*NetworkSecurityObject, error)

type NotificationClassObject

type NotificationClassObject struct {
	Object
}

func NewNotificationClassObject

func NewNotificationClassObject(options ...Option) (*NotificationClassObject, error)

type NotificationForwarderObject

type NotificationForwarderObject struct {
	Object
}

func NewNotificationForwarderObject

func NewNotificationForwarderObject(options ...Option) (*NotificationForwarderObject, error)

type Object

type Object interface {
	Initializer
	DebugContentPrinter
	GetObjectType() string
	GetAttr(name string) (any, bool)
	SetAttr(name string, value any)
	AddProperty(prop Property)
	DeleteProperty(prop string)
	ReadProperty(Args, KWArgs) error
	WriteProperty(Args, KWArgs) error
	GetProperties() []Property
	Set_Properties(_properties map[string]Property)
	Get_Properties() map[string]Property
	Get_PropertiesMonitors() map[string][]func(old, new any)
	Get_Values() map[string]any
}

TODO: big WIP

func NewObject

func NewObject(options ...Option) (Object, error)

type ObjectIdentifierProperty

type ObjectIdentifierProperty interface {
	ReadableProperty
}

TODO: big WIP

func NewObjectIdentifierProperty

func NewObjectIdentifierProperty(name string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) ObjectIdentifierProperty

type OctetStringValueObject

type OctetStringValueObject struct {
	Object
}

func NewOctetStringValueObject

func NewOctetStringValueObject(options ...Option) (*OctetStringValueObject, error)

type OptionalProperty

type OptionalProperty interface {
	StandardProperty
}

TODO: big WIP

func NewOptionalProperty

func NewOptionalProperty(identifier string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) OptionalProperty

type PositiveIntegerValueObject

type PositiveIntegerValueObject struct {
	Object
}

func NewPositiveIntegerValueObject

func NewPositiveIntegerValueObject(options ...Option) (*PositiveIntegerValueObject, error)

type ProgramObject

type ProgramObject struct {
	Object
}

func NewProgramObject

func NewProgramObject(options ...Option) (*ProgramObject, error)

type Property

type Property interface {
	GetIdentifier() string
	GetDataType() any
	IsOptional() bool
	Get_Default() any
	IsMutable() bool
	ReadProperty(args Args, kwArgs KWArgs) error
	WriteProperty(args Args, kwArgs KWArgs) error
}

TODO: big WIP

func NewProperty

func NewProperty(identifier string, datatype func(Args, KWArgs) (PropertyKlass, error), options ...Option) Property

type PropertyError

type PropertyError struct {
	Key string
}

func (PropertyError) Error

func (e PropertyError) Error() string

type PropertyKlass

type PropertyKlass interface {
	Encode(Arg) error
}

type PulseConverterObject

type PulseConverterObject struct {
	Object
}

func NewPulseConverterObject

func NewPulseConverterObject(options ...Option) (*PulseConverterObject, error)

type ReadableProperty

type ReadableProperty interface {
	StandardProperty
}

TODO: big WIP

func NewReadableProperty

func NewReadableProperty(name string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) ReadableProperty

type ScheduleObject

type ScheduleObject struct {
	Object
}

func NewScheduleObject

func NewScheduleObject(options ...Option) (*ScheduleObject, error)

type StagingObject

type StagingObject struct {
	Object
}

func NewStagingObject

func NewStagingObject(options ...Option) (*StagingObject, error)

type StandardProperty

type StandardProperty interface {
	Property
}

TODO: big WIP

func NewStandardProperty

func NewStandardProperty(identifier string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) StandardProperty

type StructuredViewObject

type StructuredViewObject struct {
	Object
}

func NewStructuredViewObject

func NewStructuredViewObject(options ...Option) (*StructuredViewObject, error)

type TimePatternValueObject

type TimePatternValueObject struct {
	Object
}

func NewTimePatternValueObject

func NewTimePatternValueObject(options ...Option) (*TimePatternValueObject, error)

type TimeValueObject

type TimeValueObject struct {
	Object
}

func NewTimeValueObject

func NewTimeValueObject(options ...Option) (*TimeValueObject, error)

type TimerObject

type TimerObject struct {
	Object
}

func NewTimerObject

func NewTimerObject(options ...Option) (*TimerObject, error)

type TrendLogObject

type TrendLogObject struct {
	Object
}

func NewTrendLogObject

func NewTrendLogObject(options ...Option) (*TrendLogObject, error)

type WritableProperty

type WritableProperty interface {
	StandardProperty
}

TODO: big WIP

func NewWritableProperty

func NewWritableProperty(name string, klass func(Args, KWArgs) (PropertyKlass, error), opts ...func(property *_Property)) WritableProperty

Source Files

Jump to

Keyboard shortcuts

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