Class SparePartsInventory

java.lang.Object
neqsim.process.mechanicaldesign.SparePartsInventory
All Implemented Interfaces:
Serializable

public class SparePartsInventory extends Object implements 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:
  • Field Details

  • Constructor Details

    • SparePartsInventory

      public SparePartsInventory(ProcessSystem processSystem)
      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

      public List<SparePartsInventory.SparePartEntry> getEntriesByCriticality(String criticality)
      Gets entries filtered by criticality level.
      Parameters:
      criticality - criticality level ("Critical", "Major", or "Minor")
      Returns:
      filtered list of entries
    • toJson

      public String toJson()
      Exports the spare parts inventory to JSON.
      Returns:
      JSON string