Class SparePartsInventory
java.lang.Object
neqsim.process.mechanicaldesign.SparePartsInventory
- All Implemented Interfaces:
Serializable
Generates a recommended spare parts inventory from a
ProcessSystem.
Walks all unit operations and maps each equipment type to a list of recommended spare parts with quantities, estimated lead times, and criticality. The inventory follows typical offshore oil & gas practice where critical rotating equipment spares are kept on-platform or at a logistics base.
Usage:
SparePartsInventory inventory = new SparePartsInventory(process); inventory.generateInventory(); String json = inventory.toJson();
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA single spare part entry.private static classTemplate for a spare part associated with an equipment type. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<SparePartsInventory.SparePartEntry> Generated spare parts list.private ProcessSystemThe process system to analyze.private static final longSerialization version UID.private static final Map<String, List<SparePartsInventory.SparePartTemplate>> Standard spare parts mapped by equipment type keyword. -
Constructor Summary
ConstructorsConstructorDescriptionSparePartsInventory(ProcessSystem processSystem) Creates a spare parts inventory generator. -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerates the spare parts inventory by walking all equipment.Gets the generated spare parts entries.getEntriesByCriticality(String criticality) Gets entries filtered by criticality level.toJson()Exports the spare parts inventory to JSON.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
processSystem
The process system to analyze. -
entries
Generated spare parts list. -
SPARE_TEMPLATES
Standard spare parts mapped by equipment type keyword.
-
-
Constructor Details
-
SparePartsInventory
Creates a spare parts inventory generator.- Parameters:
processSystem- the process system to analyze
-
-
Method Details
-
generateInventory
public void generateInventory()Generates the spare parts inventory by walking all equipment. -
getEntries
Gets the generated spare parts entries.- Returns:
- list of spare part entries
-
getEntriesByCriticality
Gets entries filtered by criticality level.- Parameters:
criticality- criticality level ("Critical", "Major", or "Minor")- Returns:
- filtered list of entries
-
toJson
-