Class EquipmentStateAdapter
java.lang.Object
neqsim.process.ml.EquipmentStateAdapter
- All Implemented Interfaces:
Serializable
Adapter for extracting StateVectors from process equipment.
Provides standardized state extraction from various equipment types without modifying core classes. Supports custom extractors for specialized equipment.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProcessEquipmentInterface, StateVector> private final ProcessEquipmentInterfaceprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionEquipmentStateAdapter(ProcessEquipmentInterface equipment) Create adapter for equipment. -
Method Summary
Modifier and TypeMethodDescriptionprivate StateVectorExtract basic state from any equipment.private StateVectorextractSeparatorState(SeparatorInterface separator) Extract state from a separator.static EquipmentStateAdapterforSeparator(SeparatorInterface separator) Create adapter for separator with full state extraction.Get the wrapped equipment.Extract state vector from equipment.setCustomExtractor(Function<ProcessEquipmentInterface, StateVector> extractor) Set a custom state extractor.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
equipment
-
customExtractor
-
-
Constructor Details
-
EquipmentStateAdapter
Create adapter for equipment.- Parameters:
equipment- the process equipment
-
-
Method Details
-
setCustomExtractor
public EquipmentStateAdapter setCustomExtractor(Function<ProcessEquipmentInterface, StateVector> extractor) Set a custom state extractor.- Parameters:
extractor- function to extract state- Returns:
- this adapter for chaining
-
getStateVector
Extract state vector from equipment.- Returns:
- current state vector
-
extractSeparatorState
Extract state from a separator.- Parameters:
separator- the separator- Returns:
- state vector
-
extractBasicState
Extract basic state from any equipment.- Parameters:
equip- the equipment- Returns:
- state vector
-
forSeparator
Create adapter for separator with full state extraction.- Parameters:
separator- the separator- Returns:
- configured adapter
-
getEquipment
-