domain

package
v0.0.0-...-eb599cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FixtureTypeMegaParProfile = "mega_par_profile"
)

Fixture types

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixture

type Fixture interface {
	SetHeader(*deviceregistrydef.DeviceHeader) error
	ID() string
	ToDef() *devicedef.Device
	DMXValues() []byte
	Offset() int
	SetProperties(map[string]interface{}) (bool, error)
	Copy() Fixture
}

Fixture is an addressable device

func NewFixtureFromDeviceHeader

func NewFixtureFromDeviceHeader(h *deviceregistrydef.DeviceHeader) (Fixture, error)

NewFixtureFromDeviceHeader returns a Fixture based on the device's fixture type attribute

type MegaParProfile

type MegaParProfile struct {
	// contains filtered or unexported fields
}

MegaParProfile is a light by ADJ

func (*MegaParProfile) Copy

func (f *MegaParProfile) Copy() Fixture

Copy returns a copy of the fixture

func (*MegaParProfile) DMXValues

func (f *MegaParProfile) DMXValues() []byte

DMXValues returns the DMX values for this fixture only

func (*MegaParProfile) ID

func (f *MegaParProfile) ID() string

ID returns the device ID

func (*MegaParProfile) Offset

func (f *MegaParProfile) Offset() int

Offset returns the fixture's offset into the channel space

func (*MegaParProfile) SetHeader

func (f *MegaParProfile) SetHeader(h *deviceregistrydef.DeviceHeader) error

SetHeader sets the fixture's header and pulls the offset out of the attributes

func (*MegaParProfile) SetProperties

func (f *MegaParProfile) SetProperties(state map[string]interface{}) (bool, error)

SetProperties sets any properties that exist in the state map

func (*MegaParProfile) ToDef

func (f *MegaParProfile) ToDef() *devicedef.Device

ToDef returns a standard Device type for a MegaParProfile

Jump to

Keyboard shortcuts

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