Documentation
¶
Index ¶
- type ParameterStore
- func (ps *ParameterStore) Add(name string, unit parameterunit.ParameterUnit, logFormatString string)
- func (ps *ParameterStore) FormatLog() (headline string, value string)
- func (ps *ParameterStore) Get(name string, unit parameterunit.ParameterUnit) float64
- func (ps *ParameterStore) Set(name string, unit parameterunit.ParameterUnit, value float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParameterStore ¶
type ParameterStore struct {
// contains filtered or unexported fields
}
func (*ParameterStore) Add ¶
func (ps *ParameterStore) Add(name string, unit parameterunit.ParameterUnit, logFormatString string)
Add adds a new parameter with given attributes to the store
func (*ParameterStore) FormatLog ¶
func (ps *ParameterStore) FormatLog() (headline string, value string)
FormatLog format all entries of parameter store to a list with a headline with separator semicolon, so it can be used to write a file in csv format.
func (*ParameterStore) Get ¶
func (ps *ParameterStore) Get(name string, unit parameterunit.ParameterUnit) float64
Get gets the current value for the given parameter with unit
func (*ParameterStore) Set ¶
func (ps *ParameterStore) Set(name string, unit parameterunit.ParameterUnit, value float64) error
Set sets a new value for the given parameter with unit
Click to show internal directories.
Click to hide internal directories.