Class EquipmentDatasheetGenerator
java.lang.Object
neqsim.process.mechanicaldesign.EquipmentDatasheetGenerator
- All Implemented Interfaces:
Serializable
Generates structured equipment datasheets from mechanical design data.
This class creates individual equipment datasheets in JSON format, suitable for import into document management systems, PDM databases, or report generators. Each datasheet follows a standard format per equipment type with sections for:
- General information (tag, description, service)
- Design conditions (pressure, temperature, materials)
- Operating conditions (normal, minimum, maximum)
- Mechanical design (dimensions, weight, wall thickness)
- Nozzle/connection schedule
- Performance data (equipment-specific)
- Applicable codes and standards
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDocument number prefix.private ProcessSystemThe process system.private StringProject name.private StringRevision.private static final longSerialization version UID. -
Constructor Summary
ConstructorsConstructorDescriptionEquipmentDatasheetGenerator(ProcessSystem processSystem) Creates a new EquipmentDatasheetGenerator for a process system. -
Method Summary
Modifier and TypeMethodDescriptionprivate com.google.gson.JsonObjectBuilds operating conditions section from equipment streams.private com.google.gson.JsonObjectbuildPerformanceData(ProcessEquipmentInterface equipment) Builds equipment-specific performance data.Generates datasheets for all equipment in the process system.com.google.gson.JsonObjectgenerateDatasheet(ProcessEquipmentInterface equipment, int sequenceNumber) Generates a datasheet for a single equipment item.private StringGets a human-readable equipment type description.private StringinferService(ProcessEquipmentInterface equipment) Infers the service description from equipment context.private doubleroundTo(double value, int decimals) Rounds a double to specified decimal places.voidsetDocumentPrefix(String prefix) Sets the document number prefix.voidsetProjectName(String projectName) Sets the project name for datasheet headers.voidsetRevision(String revision) Sets the revision level.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
processSystem
The process system. -
projectName
Project name. -
documentPrefix
Document number prefix. -
revision
Revision.
-
-
Constructor Details
-
EquipmentDatasheetGenerator
Creates a new EquipmentDatasheetGenerator for a process system.- Parameters:
processSystem- the process system to generate datasheets for
-
-
Method Details
-
setProjectName
Sets the project name for datasheet headers.- Parameters:
projectName- the project name
-
setDocumentPrefix
Sets the document number prefix.- Parameters:
prefix- document prefix (e.g., "DS", "EDS")
-
setRevision
Sets the revision level.- Parameters:
revision- revision string (e.g., "A", "B", "0")
-
generateAllDatasheets
Generates datasheets for all equipment in the process system.- Returns:
- JSON string containing an array of equipment datasheets
-
generateDatasheet
public com.google.gson.JsonObject generateDatasheet(ProcessEquipmentInterface equipment, int sequenceNumber) Generates a datasheet for a single equipment item.- Parameters:
equipment- the process equipmentsequenceNumber- sequence number for document numbering- Returns:
- JSON object representing the datasheet, or null if not applicable
-
buildOperatingConditions
Builds operating conditions section from equipment streams.- Parameters:
equipment- the equipment- Returns:
- JSON object with operating conditions
-
buildPerformanceData
Builds equipment-specific performance data.- Parameters:
equipment- the equipment- Returns:
- JSON object with performance data
-
getEquipmentTypeDescription
Gets a human-readable equipment type description.- Parameters:
equipment- the equipment- Returns:
- type description
-
inferService
Infers the service description from equipment context.- Parameters:
equipment- the equipment- Returns:
- service description
-
roundTo
private double roundTo(double value, int decimals) Rounds a double to specified decimal places.- Parameters:
value- the valuedecimals- number of decimal places- Returns:
- rounded value
-