1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Function CalcY 
 |  { 
 |    TextBody: 
 |    [* 
 |      rcv := this.RoutingConfiguratorView(); 
 |      routing := guard( this.Routing(), null( Routing ) ); 
 |      step := guard( this.Routing().FirstStep(), null( RoutingStep ) ); 
 |       
 |      y := 0; 
 |       
 |      if( not isnull( rcv ) and not isnull( routing ) and not isnull( step ) ) 
 |      { 
 |        // Is input PISP 
 |        if( not isnull( this.AsInputPISPNodeInRouting() ) ) 
 |        { 
 |          y := this.InputY(); 
 |        } 
 |        
 |      } 
 |       
 |      this.Y( y ); 
 |    *] 
 |  } 
 |  
  |