device

package
v0.0.0-...-7e17998 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Write(msg string) error
	Read(bufSize int) ([]byte, error)
	Query(msg string, bufSize int) ([]byte, error)
}

Client is the client for MAO-WFS devices.

type CorrelatorHandler

type CorrelatorHandler struct {
	Client
}

CorrelatorHandler is the handler of the correlator of MAO-WFS.

func NewCorrelatorHandler

func NewCorrelatorHandler(clt Client) *CorrelatorHandler

NewCorrelatorHandler returns the handler of the correlator.

func (*CorrelatorHandler) Finalize

func (h *CorrelatorHandler) Finalize() error

Finalize finalizes the correlator of MAO-WFS. This is the external method.

func (*CorrelatorHandler) Halt

func (h *CorrelatorHandler) Halt() error

Halt halts the correlator of MAO-WFS. This is the external method.

func (*CorrelatorHandler) Initialize

func (h *CorrelatorHandler) Initialize() error

Initialize initializes the correlator of MAO-WFS. This is the external method.

func (*CorrelatorHandler) Start

Start starts the correlator of MAO-WFS. This is the external method.

type SwitchHandler

type SwitchHandler struct {
	Client
}

SwitchHandler is the handler of the switch of MAO-WFS.

func NewSwitchHandler

func NewSwitchHandler(clt Client) *SwitchHandler

NewSwitchHandler returns the handler of the switch.

func (*SwitchHandler) Finalize

func (h *SwitchHandler) Finalize() error

Finalize finalizes the switch of MAO-WFS. This is the external method.

func (*SwitchHandler) Halt

func (h *SwitchHandler) Halt() error

Halt halts the switch of MAO-WFS. This is the external method.

func (*SwitchHandler) Initialize

func (h *SwitchHandler) Initialize(swOrder domain.SwitchOrder) error

Initialize initializes the switch of MAO-WFS. This is the external method.

func (*SwitchHandler) Start

func (h *SwitchHandler) Start() error

Start starts the switch of MAO-WFS. This is the external method.

type WFSHandler

type WFSHandler struct {
	Correlator *CorrelatorHandler
	Switch     *SwitchHandler
}

WFSHandler is the handler of MAO-WFS.

func NewWFSHandler

func NewWFSHandler(corrClt, swClt Client) *WFSHandler

NewWFSHandler returns the handler of MAO-WFS.

func (*WFSHandler) Finalize

func (h *WFSHandler) Finalize() error

Finalize finalizes MAO-WFS.

func (*WFSHandler) Halt

func (h *WFSHandler) Halt() error

Halt halts MAO-WFS.

func (*WFSHandler) Initialize

func (h *WFSHandler) Initialize(conf *domain.WFSConf) error

Initialize initializes MAO-WFS.

func (*WFSHandler) Start

func (h *WFSHandler) Start(t *domain.WFSTime) error

Start starts MAO-WFS.

Jump to

Keyboard shortcuts

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