Class FieldDevelopmentDesignOrchestrator
java.lang.Object
neqsim.process.mechanicaldesign.FieldDevelopmentDesignOrchestrator
- All Implemented Interfaces:
Serializable
Orchestrator for field development design workflows.
This class provides a unified, coordinated workflow for process simulation and mechanical design in field development projects. It manages:
- Design phase management (Concept, FEED, Detail)
- TORG (Technical Requirements Document) application
- Design case execution (Normal, Maximum, Upset, etc.)
- Design validation and compliance checking
- Report generation
Usage Example:
// Create process system
ProcessSystem process = new ProcessSystem();
process.add(separator);
process.add(compressor);
// Create orchestrator
FieldDevelopmentDesignOrchestrator orchestrator =
new FieldDevelopmentDesignOrchestrator(process, "MyProject");
// Configure for FEED phase
orchestrator.setDesignPhase(DesignPhase.FEED);
// Load and apply TORG
orchestrator.loadTorg("PROJECT-001", new CsvTorgDataSource("path/to/torg.csv"));
// Run complete design workflow
orchestrator.runCompleteDesignWorkflow();
// Check results
if (orchestrator.getValidationResult().isValid()) {
System.out.println("Design passed validation");
orchestrator.generateReport("output/design_report.pdf");
}
- Version:
- 1.0
- Author:
- esol
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents results for a single design case.static classRepresents a single workflow step. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<DesignCase, FieldDevelopmentDesignOrchestrator.DesignCaseResult> Design case results.private final List<DesignCase> Design cases to evaluate.private DesignPhaseCurrent design phase.private static final org.apache.logging.log4j.Loggerprivate final ProcessSystemThe process system being designed.private final StringProject identifier.private UUIDUnique run identifier.private static final longprivate SystemMechanicalDesignSystem mechanical design instance.private final TorgManagerTORG manager for standards management.private DesignValidationResultValidation results.private final List<FieldDevelopmentDesignOrchestrator.WorkflowStep> Workflow execution history. -
Constructor Summary
ConstructorsConstructorDescriptionFieldDevelopmentDesignOrchestrator(ProcessSystem processSystem, String projectId) Create a new orchestrator for the given process system. -
Method Summary
Modifier and TypeMethodDescriptionaddDesignCase(DesignCase designCase) Add a design case to evaluate.addTorgDataSource(TorgDataSource dataSource) Add a TORG data source.private voidApply TORG standards to the process.Generate a design report.private voidGenerate results summary.Get the active TORG.Get design case results.Get configured design cases.Get current design phase.Get the process system.Get the project ID.getRunId()Get the run ID.Get the system mechanical design instance.Get the TORG manager.Get the validation result.Get workflow execution history.private voidInitialize the workflow.booleanLoad TORG from configured data sources.booleanloadTorg(String torgProjectId, TorgDataSource dataSource) Load TORG and apply to process system.booleanRun the complete design workflow.private booleanRun mechanical design calculations.private booleanRun process simulation for all design cases.setDesignCases(List<DesignCase> cases) Set design cases to evaluate.setDesignPhase(DesignPhase phase) Set the design phase.private voidValidate the design against requirements.private voidvalidateDetailedDesign(ProcessEquipmentInterface equipment, MechanicalDesign mechDesign) Validate detailed design requirements.private voidvalidateEquipment(ProcessEquipmentInterface equipment) Validate a single equipment item.private voidValidate standards compliance.private voidValidate TORG compliance.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private static final org.apache.logging.log4j.Logger logger -
processSystem
The process system being designed. -
projectId
Project identifier. -
designPhase
Current design phase. -
designCases
Design cases to evaluate. -
torgManager
TORG manager for standards management. -
systemMechanicalDesign
System mechanical design instance. -
validationResult
Validation results. -
caseResults
Design case results. -
workflowHistory
Workflow execution history. -
runId
Unique run identifier.
-
-
Constructor Details
-
FieldDevelopmentDesignOrchestrator
Create a new orchestrator for the given process system.- Parameters:
processSystem- the process system to designprojectId- unique project identifier- Throws:
IllegalArgumentException- if processSystem is null
-
-
Method Details
-
setDesignPhase
Set the design phase.- Parameters:
phase- the design phase- Returns:
- this instance for chaining
-
getDesignPhase
-
addDesignCase
Add a design case to evaluate.- Parameters:
designCase- the design case to add- Returns:
- this instance for chaining
-
setDesignCases
Set design cases to evaluate.- Parameters:
cases- list of design cases- Returns:
- this instance for chaining
-
getDesignCases
-
addTorgDataSource
Add a TORG data source.- Parameters:
dataSource- the data source- Returns:
- this instance for chaining
-
loadTorg
Load TORG from configured data sources.- Parameters:
torgProjectId- the TORG project ID to load- Returns:
- true if loaded successfully
-
loadTorg
Load TORG and apply to process system.- Parameters:
torgProjectId- the TORG project ID to loaddataSource- the data source to load from- Returns:
- true if loaded and applied successfully
-
getTorgManager
-
getActiveTorg
Get the active TORG.- Returns:
- active TORG or null if not loaded
-
runCompleteDesignWorkflow
public boolean runCompleteDesignWorkflow()Run the complete design workflow.This method executes the following steps in order:
- Initialize workflow (create run ID, clear previous results)
- Run process simulation
- Apply TORG standards to equipment
- Execute mechanical design calculations
- Validate design against requirements
- Generate results summary
- Returns:
- true if workflow completed successfully
-
initializeWorkflow
private void initializeWorkflow()Initialize the workflow. -
runProcessSimulation
private boolean runProcessSimulation()Run process simulation for all design cases.- Returns:
- true if simulation successful
-
applyTorgToProcess
private void applyTorgToProcess()Apply TORG standards to the process. -
runMechanicalDesign
private boolean runMechanicalDesign()Run mechanical design calculations.- Returns:
- true if calculations successful
-
validateDesign
private void validateDesign()Validate the design against requirements. -
validateEquipment
Validate a single equipment item.- Parameters:
equipment- the equipment to validate
-
validateDetailedDesign
private void validateDetailedDesign(ProcessEquipmentInterface equipment, MechanicalDesign mechDesign) Validate detailed design requirements.- Parameters:
equipment- the equipmentmechDesign- the mechanical design
-
validateStandardsCompliance
private void validateStandardsCompliance()Validate standards compliance. -
validateTorgCompliance
private void validateTorgCompliance()Validate TORG compliance. -
generateResultsSummary
private void generateResultsSummary()Generate results summary. -
getSystemMechanicalDesign
Get the system mechanical design instance.- Returns:
- system mechanical design or null if not yet run
-
getValidationResult
Get the validation result.- Returns:
- validation result
-
getWorkflowHistory
Get workflow execution history.- Returns:
- list of workflow steps
-
getCaseResults
Get design case results.- Returns:
- map of design case to results
-
getProcessSystem
-
getProjectId
-
getRunId
-
generateDesignReport
-