@@ -143,8 +143,7 @@ public void SH_process_script(SignalHead thisHead, SignalScripts.SCRScripts sign
143
143
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" , "\n \n SIGNAL : " + thisHead . TDBIndex . ToString ( ) + "\n " ) ;
144
144
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" , "OBJECT : " + thisHead . mainSignal . thisRef . ToString ( ) + "\n " ) ;
145
145
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" , "type : " + signalScript . scriptname + "\n " ) ;
146
- String fnstring = String . Copy ( thisHead . mainSignal . signalRef . Simulator . SIGCFG . ORTSFunctionTypes [ thisHead . ORTSsigFunctionIndex ] ) ;
147
- File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "fntype : " + thisHead . ORTSsigFunctionIndex + " = " + fnstring + "\n \n " ) ;
146
+ File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "fntype : " + thisHead . SignalTypeName + " = " + thisHead . Function + "\n \n " ) ;
148
147
}
149
148
#endif
150
149
#if DEBUG_PRINT_PROCESS
@@ -153,9 +152,7 @@ public void SH_process_script(SignalHead thisHead, SignalScripts.SCRScripts sign
153
152
File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "\n \n SIGNAL : " + thisHead . TDBIndex . ToString ( ) + "\n " ) ;
154
153
File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "OBJECT : " + thisHead . mainSignal . thisRef . ToString ( ) + "\n " ) ;
155
154
File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "type : " + signalScript . scriptname + "\n " ) ;
156
- String fnstring = String . Copy ( thisHead . mainSignal . signalRef . Simulator . SIGCFG . ORTSFunctionTypes [ thisHead . ORTSsigFunctionIndex ] ) ;
157
- File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "fntype : " + thisHead . ORTSsigFunctionIndex + " = " + fnstring + "\n \n " ) ;
158
-
155
+ File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "fntype : " + thisHead . SignalTypeName + " = " + thisHead . Function + "\n \n " ) ;
159
156
if ( thisHead . mainSignal . localStorage . Count > 0 )
160
157
{
161
158
File . AppendAllText ( dpr_fileLoc + @"printproc.txt" , "\n local storage : \n " ) ;
@@ -582,18 +579,18 @@ public int SH_function_value(SignalHead thisHead, SignalScripts.SCRScripts.SCRSt
582
579
{
583
580
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" ,
584
581
" NEXT_SIG_LR : Located signal : " +
585
- thisHead . mainSignal . sigfound [ parameter1_value ] . ToString ( ) + "\n " ) ;
582
+ thisHead . mainSignal . sigfound [ function1 ] . ToString ( ) + "\n " ) ;
586
583
}
587
584
#endif
588
585
#if DEBUG_PRINT_PROCESS
589
586
if ( TDB_debug_ref . Contains ( thisHead . TDBIndex ) || OBJ_debug_ref . Contains ( thisHead . mainSignal . thisRef ) )
590
587
{
591
588
var sob = new StringBuilder ( ) ;
592
- sob . AppendFormat ( " NEXT_SIG_LR : Located signal : {0}" , thisHead . mainSignal . sigfound [ parameter1_value ] . ToString ( ) ) ;
589
+ sob . AppendFormat ( " NEXT_SIG_LR : Located signal : {0}" , thisHead . mainSignal . sigfound [ function1 ] . ToString ( ) ) ;
593
590
594
- if ( thisHead . mainSignal . sigfound [ parameter1_value ] > 0 )
591
+ if ( thisHead . mainSignal . sigfound [ function1 ] > 0 )
595
592
{
596
- SignalObject otherSignal = thisHead . mainSignal . signalRef . SignalObjects [ thisHead . mainSignal . sigfound [ parameter1_value ] ] ;
593
+ SignalObject otherSignal = thisHead . mainSignal . signalRef . SignalObjects [ thisHead . mainSignal . sigfound [ function1 ] ] ;
597
594
sob . AppendFormat ( " (" ) ;
598
595
599
596
foreach ( SignalHead otherHead in otherSignal . SignalHeads )
@@ -620,15 +617,15 @@ public int SH_function_value(SignalHead thisHead, SignalScripts.SCRScripts.SCRSt
620
617
{
621
618
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" ,
622
619
" NEXT_SIG_MR : Located signal : " +
623
- thisHead . mainSignal . sigfound [ parameter1_value ] . ToString ( ) + "\n " ) ;
620
+ thisHead . mainSignal . sigfound [ function1 ] . ToString ( ) + "\n " ) ;
624
621
}
625
622
#endif
626
623
#if DEBUG_PRINT_PROCESS
627
624
if ( TDB_debug_ref . Contains ( thisHead . TDBIndex ) || OBJ_debug_ref . Contains ( thisHead . mainSignal . thisRef ) )
628
625
{
629
626
File . AppendAllText ( dpr_fileLoc + @"printproc.txt" ,
630
627
" NEXT_SIG_MR : Located signal : " +
631
- thisHead . mainSignal . sigfound [ parameter1_value ] . ToString ( ) + "\n " ) ;
628
+ thisHead . mainSignal . sigfound [ function1 ] . ToString ( ) + "\n " ) ;
632
629
}
633
630
#endif
634
631
break ;
@@ -657,7 +654,7 @@ public int SH_function_value(SignalHead thisHead, SignalScripts.SCRScripts.SCRSt
657
654
if ( thisHead . mainSignal . enabledTrain != null )
658
655
{
659
656
SignalObject foundSignal = null ;
660
- int dummy = ( int ) thisHead . opp_sig_lr ( parameter1_value , ref foundSignal ) ;
657
+ int dummy = ( int ) thisHead . opp_sig_lr ( function1 , ref foundSignal ) ;
661
658
int foundRef = foundSignal != null ? foundSignal . thisRef : - 1 ;
662
659
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" ,
663
660
" OPP_SIG_LR : Located signal : " + foundRef . ToString ( ) + "\n " ) ;
@@ -667,7 +664,7 @@ public int SH_function_value(SignalHead thisHead, SignalScripts.SCRScripts.SCRSt
667
664
if ( TDB_debug_ref . Contains ( thisHead . TDBIndex ) || OBJ_debug_ref . Contains ( thisHead . mainSignal . thisRef ) )
668
665
{
669
666
SignalObject foundSignal = null ;
670
- int dummy = ( int ) thisHead . opp_sig_lr ( parameter1_value , ref foundSignal ) ;
667
+ int dummy = ( int ) thisHead . opp_sig_lr ( function1 , ref foundSignal ) ;
671
668
int foundRef = foundSignal != null ? foundSignal . thisRef : - 1 ;
672
669
File . AppendAllText ( dpr_fileLoc + @"printproc.txt" ,
673
670
" OPP_SIG_LR : Located signal : " + foundRef . ToString ( ) + "\n " ) ;
@@ -1332,19 +1329,19 @@ public int SH_function_value(SignalHead thisHead, SignalScripts.SCRScripts.SCRSt
1332
1329
{
1333
1330
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" ,
1334
1331
" NEXT_SIG_LVAR : Located signal : " +
1335
- thisHead . mainSignal . sigfound [ parameter1_value ] . ToString ( ) + "\n " ) ;
1332
+ thisHead . mainSignal . sigfound [ function1 ] . ToString ( ) + "\n " ) ;
1336
1333
File . AppendAllText ( dpe_fileLoc + @"printproc.txt" , " returned value : " + return_value + "\n " ) ;
1337
1334
}
1338
1335
#endif
1339
1336
#if DEBUG_PRINT_PROCESS
1340
1337
if ( TDB_debug_ref . Contains ( thisHead . TDBIndex ) || OBJ_debug_ref . Contains ( thisHead . mainSignal . thisRef ) )
1341
1338
{
1342
1339
var sob = new StringBuilder ( ) ;
1343
- sob . AppendFormat ( " NEXT_SIG_LVAR : Located signal : {0}" , thisHead . mainSignal . sigfound [ parameter1_value ] . ToString ( ) ) ;
1340
+ sob . AppendFormat ( " NEXT_SIG_LVAR : Located signal : {0}" , thisHead . mainSignal . sigfound [ function1 ] . ToString ( ) ) ;
1344
1341
1345
- if ( thisHead . mainSignal . sigfound [ parameter1_value ] > 0 )
1342
+ if ( thisHead . mainSignal . sigfound [ function1 ] > 0 )
1346
1343
{
1347
- SignalObject otherSignal = thisHead . mainSignal . signalRef . SignalObjects [ thisHead . mainSignal . sigfound [ parameter1_value ] ] ;
1344
+ SignalObject otherSignal = thisHead . mainSignal . signalRef . SignalObjects [ thisHead . mainSignal . sigfound [ function1 ] ] ;
1348
1345
sob . AppendFormat ( " (" ) ;
1349
1346
1350
1347
foreach ( SignalHead otherHead in otherSignal . SignalHeads )
0 commit comments