Package io.openems.common.types
Class EdgeConfig.Component.Channel.ChannelDetailEnum
- java.lang.Object
-
- io.openems.common.types.EdgeConfig.Component.Channel.ChannelDetailEnum
-
- All Implemented Interfaces:
EdgeConfig.Component.Channel.ChannelDetail
- Enclosing class:
- EdgeConfig.Component.Channel
public static class EdgeConfig.Component.Channel.ChannelDetailEnum extends java.lang.Object implements EdgeConfig.Component.Channel.ChannelDetail
Channel-Details for EnumChannel.
-
-
Constructor Summary
Constructors Constructor Description ChannelDetailEnum(java.util.Map<java.lang.String,com.google.gson.JsonElement> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelCategory
getCategory()
Gets theChannelCategory
of the Channel.java.util.Map<java.lang.String,com.google.gson.JsonElement>
getOptions()
Gets a Map of all the options of an EnumChannel.com.google.gson.JsonObject
toJson()
Gets theEdgeConfig.Component.Channel.ChannelDetail
asJsonObject
.
-
-
-
Method Detail
-
getCategory
public ChannelCategory getCategory()
Description copied from interface:EdgeConfig.Component.Channel.ChannelDetail
Gets theChannelCategory
of the Channel.- Specified by:
getCategory
in interfaceEdgeConfig.Component.Channel.ChannelDetail
- Returns:
- the
ChannelCategory
-
getOptions
public java.util.Map<java.lang.String,com.google.gson.JsonElement> getOptions()
Gets a Map of all the options of an EnumChannel.- Returns:
- the Map of options
-
toJson
public com.google.gson.JsonObject toJson()
Description copied from interface:EdgeConfig.Component.Channel.ChannelDetail
Gets theEdgeConfig.Component.Channel.ChannelDetail
asJsonObject
.- Specified by:
toJson
in interfaceEdgeConfig.Component.Channel.ChannelDetail
- Returns:
- the
JsonObject
-
-