Class AllowedChannels
java.lang.Object
io.openems.backend.timedata.aggregatedinflux.AllowedChannels
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
protected static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Map
<String, AllowedChannels.DataType> static final Map
<String, AllowedChannels.DataType> -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addWithSpecificChannelType
(com.influxdb.client.write.Point builder, String field, com.google.gson.JsonElement value) Adds the given value to the builder at the specified field parsed to the predefined type of the channel.static AllowedChannels.ChannelType
getChannelType
(String channel) Gets the type of the given channel.static boolean
isChannelDefined
(String channel) Checks if the given channel is a allowed channel.protected static Iterable
<Map.Entry<String, AllowedChannels.DataType>> multiChannels
(String component, int from, int to, String channelOfComponent, int fromChannel, int toChannel, AllowedChannels.DataType type) protected static Iterable
<Map.Entry<String, AllowedChannels.DataType>> multiChannels
(String component, int from, int to, String channelOfComponent, AllowedChannels.DataType type)
-
Field Details
-
ALLOWED_AVERAGE_CHANNELS
-
ALLOWED_CUMULATED_CHANNELS
-
-
Method Details
-
isChannelDefined
Checks if the given channel is a allowed channel.- Parameters:
channel
- the to check- Returns:
- true if defined otherwise false
-
getChannelType
Gets the type of the given channel.- Parameters:
channel
- the Channel-Address- Returns:
- the
AllowedChannels.ChannelType
-
addWithSpecificChannelType
public static boolean addWithSpecificChannelType(com.influxdb.client.write.Point builder, String field, com.google.gson.JsonElement value) Adds the given value to the builder at the specified field parsed to the predefined type of the channel.- Parameters:
builder
- aPoint
builderfield
- the field namevalue
- theJsonElement
value- Returns:
- true on success
-
multiChannels
protected static Iterable<Map.Entry<String,AllowedChannels.DataType>> multiChannels(String component, int from, int to, String channelOfComponent, AllowedChannels.DataType type) -
multiChannels
protected static Iterable<Map.Entry<String,AllowedChannels.DataType>> multiChannels(String component, int from, int to, String channelOfComponent, int fromChannel, int toChannel, AllowedChannels.DataType type)
-