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; }
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 ElementStage( FlowProcess flowProcess, FlowElement flowElement ) { this.flowElement = flowElement; FlowElement element = flowElement; while( element != null ) { if( element instanceof ScopedElement && ( (ScopedElement) element ).hasConfigDef() ) flowProcess = new ElementFlowProcess( flowProcess, ( (ScopedElement) element ).getConfigDef() ); if( element instanceof Pipe ) element = ( (Pipe) element ).getParent(); else element = null; } this.flowProcess = flowProcess; }
protected void initConfFromStepConfigDef( ConfigDef.Setter setter ) { ElementGraph stepElementGraph = ElementGraphs.asExtentMaskedSubGraph( getElementGraph() ); // applies each mode in order, topologically for( ConfigDef.Mode mode : ConfigDef.Mode.values() ) { Iterator<FlowElement> iterator = ElementGraphs.getTopologicalIterator( stepElementGraph ); while( iterator.hasNext() ) { FlowElement element = iterator.next(); while( element != null ) { if( element instanceof ScopedElement && ( (ScopedElement) element ).hasStepConfigDef() ) ( (ScopedElement) element ).getStepConfigDef().apply( mode, setter ); // walk up the sub-assembly parent hierarchy if( element instanceof Pipe ) element = ( (Pipe) element ).getParent(); else element = null; } } } }
element = ( (Pipe) element ).getParent(); else element = null;