public BoundaryStage( FlowProcess flowProcess, Boundary boundary ) { this.boundary = boundary; Pipe element = boundary; while( element != null ) { if( element.hasConfigDef() ) flowProcess = new ElementFlowProcess( flowProcess, element.getConfigDef() ); element = element.getParent(); } this.flowProcess = flowProcess; }
public SpliceGate( FlowProcess flowProcess, Splice splice ) { this.splice = splice; Pipe element = splice; while( element != null ) { if( element.hasConfigDef() ) flowProcess = new ElementFlowProcess( flowProcess, element.getConfigDef() ); element = element.getParent(); } this.flowProcess = flowProcess; }