Enum Class S7.AreaType
- All Implemented Interfaces:
Serializable,Comparable<S7.AreaType>,Constable
- Enclosing class:
S7
Area types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic S7.AreaTypefromId(int id) Retrieve an area type from its id.intgetId()Retrieve the area type id.booleanisAnyOf(S7.AreaType... areaTypes) Determine whether this area type is any of the provided types.static S7.AreaTypeReturns the enum constant of this class with the specified name.static S7.AreaType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Invalid or unknown -
PI_PQ
Peripheral input/output area -
I
Digital input area -
Q
Digital output area -
M
Flag memory area -
DB
Shared data block area -
DI
Instance data block area -
L
Local data area -
V
Previous local data area
-
-
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
-
getId
public int getId()Retrieve the area type id.- Returns:
- area type id
-
fromId
Retrieve an area type from its id.- Parameters:
id- area type id- Returns:
- area type, or
UNKNOWN
-
isAnyOf
Determine whether this area type is any of the provided types.- Parameters:
areaTypes- candidate area types- Returns:
- true if this type matches one of the candidate types
-