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 ¶
func (h *CorrelatorHandler) Start(t domain.SensingTime) error
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) Initialize ¶
func (h *WFSHandler) Initialize(conf *domain.WFSConf) error
Initialize initializes MAO-WFS.