Enum Class GoodWeType
- All Implemented Interfaces:
OptionsEnum
,Serializable
,Comparable<GoodWeType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets this enums String representation.Is this GoodWe a ET-Series or BT-Series.Gets the enum that is used for 'UNDEFINED' values.int
getValue()
Gets this enums int representation.static ThrowingFunction
<String, Boolean, Exception> home30Filter
(String... match) Home 30 filter.static ThrowingFunction
<String, Boolean, Exception> position2Filter
(String match) Position two filter.static GoodWeType
Returns the enum constant of this class with the specified name.static GoodWeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.openems.common.types.OptionsEnum
asCamelCase, isUndefined
-
Enum Constant Details
-
UNDEFINED
-
GOODWE_10K_BT
-
GOODWE_8K_BT
-
GOODWE_5K_BT
-
GOODWE_10K_ET
-
GOODWE_8K_ET
-
GOODWE_5K_ET
-
FENECON_FHI_10_DAH
-
FENECON_FHI_20_DAH
-
FENECON_FHI_29_9_DAH
-
-
Field Details
-
maxDcCurrent
public final int maxDcCurrent -
serialNrFilter
-
isInvalidBattery
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Description copied from interface:OptionsEnum
Gets this enums int representation.- Specified by:
getValue
in interfaceOptionsEnum
- Returns:
- the int representation
-
getName
Description copied from interface:OptionsEnum
Gets this enums String representation.- Specified by:
getName
in interfaceOptionsEnum
- Returns:
- the String representation
-
getSeries
Is this GoodWe a ET-Series or BT-Series.- Returns:
- the Series or UNDEFINED if unknown
-
getUndefined
Description copied from interface:OptionsEnum
Gets the enum that is used for 'UNDEFINED' values.- Specified by:
getUndefined
in interfaceOptionsEnum
- Returns:
- the UNDEFINED enum
-
position2Filter
Position two filter.Check if a serialNr matches a given string at the common position.
- Parameters:
match
- string identifier- Returns:
- filter function
-
home30Filter
Home 30 filter.Check if a serialNr matches a given string at the common position defined for goodwe30.
- Parameters:
match
- string identifier- Returns:
- filter function
-