Class StandardBasedCsvDataSource

java.lang.Object
neqsim.process.mechanicaldesign.data.StandardBasedCsvDataSource
All Implemented Interfaces:
MechanicalDesignDataSource

public class StandardBasedCsvDataSource extends Object implements MechanicalDesignDataSource
Loads mechanical design limits from CSV files with support for international standards.

This data source supports two CSV formats:

Standard Format (with STANDARD_CODE column):

STANDARD_CODE,STANDARD_VERSION,EQUIPMENTTYPE,SPECIFICATION,MINVALUE,MAXVALUE,UNIT,DESCRIPTION
NORSOK-L-001,Rev 6,Pipeline,DesignPressureMargin,1.1,1.1,-,Design pressure safety factor
ASME-VIII-Div1,2021,Separator,MaxPressure,0,150,barg,Maximum design pressure

Company Format (legacy compatibility):

EQUIPMENTTYPE,COMPANY,MAXPRESSURE,MINPRESSURE,MAXTEMPERATURE,MINTEMPERATURE,CORROSIONALLOWANCE,JOINTEFFICIENCY
Pipeline,StatoilTR,100,0,150,-50,3.0,0.85

The data source automatically detects the format based on column headers.

Version:
1.0
Author:
esol
  • Field Details

    • logger

      private static final org.apache.logging.log4j.Logger logger
    • csvPath

      private final Path csvPath
    • resourcePath

      private final String resourcePath
    • isResource

      private final boolean isResource
    • cachedData

    • isStandardFormat

      private boolean isStandardFormat
  • Constructor Details

    • StandardBasedCsvDataSource

      public StandardBasedCsvDataSource(Path csvPath)
      Create a data source from a file path.
      Parameters:
      csvPath - path to the CSV file
    • StandardBasedCsvDataSource

      public StandardBasedCsvDataSource(String resourcePath)
      Create a data source from a classpath resource.
      Parameters:
      resourcePath - the classpath resource path (e.g., "designdata/standards/norsok.csv")
  • Method Details