Enum Class IEC81346LetterCode
- All Implemented Interfaces:
Serializable, Comparable<IEC81346LetterCode>, Constable
IEC 81346-2 defines a set of single-letter codes that classify equipment and objects by their purpose or function. Each letter code represents a broad category such as "converting/separating" (B), "processing/compressing" (K), or "flow controlling" (Q).
This enum maps each IEC 81346-2 letter code to its standardized description and provides a static
mapping from NeqSim EquipmentEnum values to the corresponding letter code. This mapping
is used by the ReferenceDesignationGenerator to automatically assign reference
designations per IEC 81346.
IEC 81346-2 letter code table (selected codes relevant to process industry):
| Code | Description | Examples |
|---|---|---|
| A | Two or more purposes or tasks | Multi-functional assemblies |
| B | Converting, separating, changing form | Heat exchangers, separators, reactors, filters |
| C | Storing, presenting information | Tanks, vessels, accumulators |
| G | Generating, providing energy | Generators, fuel cells, solar panels, wind turbines |
| K | Processing, compressing, driving | Compressors, pumps, expanders, turbines |
| M | Providing mechanical energy | Gas turbines, motors, engines |
| N | Processing information | Calculators, adjusters, controllers |
| Q | Controlling flow, movement | Valves, dampers |
| S | Sensing, detecting, measuring | Pressure transmitters, temperature transmitters |
| T | Transporting, moving | Pipes, conveyors, pipelines |
| W | Guiding, conducting | Piping segments, ducting, cable trays |
| X | Connecting, branching | Mixers, splitters, manifolds |
- Version:
- 1.0
- Author:
- Even Solbraa
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTwo or more purposes or tasks (multi-functional assemblies).Converting, separating, changing form (heat exchangers, separators, reactors, filters).Storing, presenting information (tanks, vessels, accumulators).Generating, providing energy (generators, fuel cells, solar panels, wind turbines).Processing, compressing, driving (compressors, pumps, expanders).Providing mechanical energy (gas turbines, motors, engines).Processing information (calculators, adjusters, controllers).Controlling flow and movement (valves, dampers).Sensing, detecting, measuring (transmitters, analyzers, probes).Transporting, moving (pipes, conveyors, pipelines).Guiding, conducting (piping segments, ducting, cable trays).Connecting, branching (mixers, splitters, manifolds, junctions). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final Map<EquipmentEnum, IEC81346LetterCode> Unmodifiable mapping from NeqSimEquipmentEnumto IEC 81346-2 letter code. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIEC81346LetterCode(String description) Constructs an IEC 81346-2 letter code with its standardized description. -
Method Summary
Modifier and TypeMethodDescriptionstatic IEC81346LetterCodefromEquipment(ProcessEquipmentInterface equipment) Maps a NeqSim equipment class to its corresponding IEC 81346-2 letter code.static IEC81346LetterCodefromEquipmentEnum(EquipmentEnum equipmentType) Maps a NeqSimEquipmentEnumto its corresponding IEC 81346-2 letter code.Returns the standardized description of this IEC 81346-2 letter code.static Map<EquipmentEnum, IEC81346LetterCode> Returns the unmodifiable mapping fromEquipmentEnumto IEC 81346-2 letter codes.static IEC81346LetterCodeReturns the enum constant of this class with the specified name.static IEC81346LetterCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A
Two or more purposes or tasks (multi-functional assemblies). -
B
Converting, separating, changing form (heat exchangers, separators, reactors, filters). -
C
Storing, presenting information (tanks, vessels, accumulators). -
G
Generating, providing energy (generators, fuel cells, solar panels, wind turbines). -
K
Processing, compressing, driving (compressors, pumps, expanders). -
M
Providing mechanical energy (gas turbines, motors, engines). -
N
Processing information (calculators, adjusters, controllers). -
Q
Controlling flow and movement (valves, dampers). -
S
Sensing, detecting, measuring (transmitters, analyzers, probes). -
T
Transporting, moving (pipes, conveyors, pipelines). -
W
Guiding, conducting (piping segments, ducting, cable trays). -
X
Connecting, branching (mixers, splitters, manifolds, junctions).
-
-
Field Details
-
description
-
EQUIPMENT_MAP
Unmodifiable mapping from NeqSimEquipmentEnumto IEC 81346-2 letter code.This mapping is used by the reference designation generator to automatically classify process equipment per IEC 81346-2.
-
-
Constructor Details
-
IEC81346LetterCode
Constructs an IEC 81346-2 letter code with its standardized description.- Parameters:
description- the standard description of the letter code per IEC 81346-2
-
-
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
-
getDescription
Returns the standardized description of this IEC 81346-2 letter code.- Returns:
- the description string, e.g. "Converting, separating, changing form"
-
fromEquipmentEnum
Maps a NeqSimEquipmentEnumto its corresponding IEC 81346-2 letter code.- Parameters:
equipmentType- the NeqSim equipment type- Returns:
- the IEC 81346-2 letter code, or
Aif no specific mapping exists
-
fromEquipment
Maps a NeqSim equipment class to its corresponding IEC 81346-2 letter code.This method first attempts to resolve the letter code through the canonical
EQUIPMENT_MAPby trying to match the equipment's simple class name to anEquipmentEnumvalue. If that fails, it falls back toinstanceofchecks for broad base-class detection (e.g. anySeparatorsubclass maps toB).- Parameters:
equipment- the process equipment instance- Returns:
- the IEC 81346-2 letter code, or
Aif the type is not recognized
-
getEquipmentMapping
Returns the unmodifiable mapping fromEquipmentEnumto IEC 81346-2 letter codes.- Returns:
- unmodifiable map of all defined equipment-to-letter-code mappings
-