collar

package
v0.0.0-...-7656c7d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collar

type Collar[T float64 | float32] struct {
	SaveStrategy SaveStrategy[T]
	// contains filtered or unexported fields
}

func NewCollar

func NewCollar[T float64 | float32]() *Collar[T]

func (*Collar[T]) ProcessData

func (c *Collar[T]) ProcessData()

func (*Collar[T]) Save

func (c *Collar[T]) Save(a animal.DataAnimal[T])

func (*Collar[T]) SetStrategy

func (c *Collar[T]) SetStrategy(strategy SaveStrategy[T])

func (*Collar[T]) WearCollar

func (c *Collar[T]) WearCollar(animalData animal.DataAnimal[T])

type GprsOff

type GprsOff[T float64 | float32] struct{}

func (*GprsOff[T]) CheckGprs

func (g *GprsOff[T]) CheckGprs(dataAnimal animal.DataAnimal[T]) string

type GprsOn

type GprsOn[T float64 | float32] struct{}

func (*GprsOn[T]) CheckGprs

func (g *GprsOn[T]) CheckGprs(dataAnimal animal.DataAnimal[T]) string

type SaveStrategy

type SaveStrategy[T float64 | float32] interface {
	CheckGprs(dataAnimal animal.DataAnimal[T]) string
}

type SensorAnimal

type SensorAnimal interface {
	Typify() string
	RecordBreathing(breathingData float64)
	RecordSound(soundData float64)
}

Jump to

Keyboard shortcuts

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