parameter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMsg

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

func (LogMsg) Header

func (lm LogMsg) Header() string

func (LogMsg) Value

func (lm LogMsg) Value() string

type Parameter

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

func New

func New(name string) *Parameter

New creates a new parameter with the given name

func (*Parameter) AddUnit

func (p *Parameter) AddUnit(paramUnit parameterunit.ParameterUnit, logFormatString string)

AddUnit adds a new unit to the parameter

func (Parameter) FormatLog

func (p Parameter) FormatLog() LogMsg

FormatLog format all unit entries of parameter to a list with a headline with separator semicolon, so it can be used to write a file in csv format.

func (*Parameter) Get

func (p *Parameter) Get(paramUnit parameterunit.ParameterUnit) float64

Get gets the current value for the given unit

func (*Parameter) Set

func (p *Parameter) Set(paramUnit parameterunit.ParameterUnit, value float64) error

Set sets a new value for the given unit

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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