Extend the data object instances as you like.
Initialize new GetStateData instance.
Optional
rawData: stringPlain response string of the GetStateService or the
/GetState.csv
API endpoint.
Lists all indices of objects that are not labeled with 'n.a.' and therefore considered to be active.
Readonly
categoriesActual data objects for further processing.
Ordered by CSV column position starting at 0.
CSV input parsed to a simple 2-dimensional array.
Structure:
[
0: [ // line one
0: // line one, column one
1: // line one, column two
],
1: [ // line two
0: // line two, column one
...
...
]
Raw CSV input string (retrieved by the GetStateService).
SysInfo column data.
The first line of the csv has no relation to the rest of the CSV. So it is stored seperately in here.
Static
Readonly
categoriesData categories as array of objects.
Category names as keys and arrays as values. These arrays list columns
(referencing the parsed CSV) which fall into this category.
The array values might contain simple listings of the column positions or
another array containing the starting and ending index of a slice/range.
Counting columns starts at 0. The value is of type any
to simplify
dynamic iteration without linting or parsing errors.
Get the chlorine dosage control RelayDataObject.
Get a single GetStateDataObject by id aka column index.
Object column index.
Get GetStateDataObject objects by index.
An array of object indices specifying the return objects.
Optionally filter for active objects only.
Get all data objects of a given category.
A valid category string (see GetStateCategory)
Optionally filter for active objects only.
Get the pH- dosage control RelayDataObject.
Get the pH+ dosage control RelayDataObject.
Check whether the given id refers to a dosage control RelayDataObject.
Parse the CSV string into a 2-dimensional array structure and into GetStateDataObject and RelayDataObject objects.
Raw CSV input string (response of the /GetState.csv
endpoint)
This class is parser and access helper at once with integrated object representation for the response CSV of the GetStateService. (This might be changed/split in seperate classes in a future refactoring)