Changeset 158 in tmcsimulator for trunk


Ignore:
Timestamp:
10/21/2017 11:28:15 AM (9 years ago)
Author:
jdalbey
Message:

ATMSBatchDriver: Removed diagnostic output of ATMS time. build.xml fixed ATMSBatchDriver.jar target.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE_metadata/NetBeans/TMCSim/build.xml

    r64 r158  
    237237        </manifest> 
    238238      </jar> 
     239       
     240      <!--                   *** ATMS Batch Driver Only Jar ***         --> 
     241      <jar destfile="${deploy.dir}/ATMSBatchDriver.jar" 
     242       basedir="${build.dir}/classes" 
     243       includes="tmcsim/client/**, tmcsim/common/**, tmcsim/interfaces/**, 
     244                 tmcsim/client/cadclientgui/**, tmcsim/cadmodels/**, 
     245                 atmsdriver/**, atmsdriver.model/**" 
     246       excludes="**/Test.class"> 
     247        <zipgroupfileset dir="dist/lib" includes="xercesImpl.jar"/> 
     248        <manifest> 
     249            <attribute name="Main-Class" value="tmcsim/client/ATMSBatchDriver"/> 
     250        </manifest> 
     251      </jar> 
    239252</target> 
    240253 
     
    250263</target> 
    251264 
    252     <!-- 
    253  
    254     There exist several targets which are by default empty and which can be 
    255     used for execution of your tasks. These targets are usually executed 
    256     before and after some main targets. They are: 
    257  
    258       -pre-init:                 called before initialization of project properties 
    259       -post-init:                called after initialization of project properties 
    260       -pre-compile:              called before javac compilation 
    261       -post-compile:             called after javac compilation 
    262       -pre-compile-single:       called before javac compilation of single file 
    263       -post-compile-single:      called after javac compilation of single file 
    264       -pre-compile-test:         called before javac compilation of JUnit tests 
    265       -post-compile-test:        called after javac compilation of JUnit tests 
    266       -pre-compile-test-single:  called before javac compilation of single JUnit test 
    267       -post-compile-test-single: called after javac compilation of single JUunit test 
    268       -pre-jar:                  called before JAR building 
    269       -post-jar:                 called after JAR building 
    270       -post-clean:               called after cleaning build products 
    271  
    272     (Targets beginning with '-' are not intended to be called on their own.) 
    273  
    274     Example of inserting an obfuscator after compilation could look like this: 
    275  
    276         <target name="-post-compile"> 
    277             <obfuscate> 
    278                 <fileset dir="${build.classes.dir}"/> 
    279             </obfuscate> 
    280         </target> 
    281  
    282     For list of available properties check the imported 
    283     nbproject/build-impl.xml file. 
    284  
    285  
    286     Another way to customize the build is by overriding existing main targets. 
    287     The targets of interest are: 
    288  
    289       -init-macrodef-javac:     defines macro for javac compilation 
    290       -init-macrodef-junit:     defines macro for junit execution 
    291       -init-macrodef-debug:     defines macro for class debugging 
    292       -init-macrodef-java:      defines macro for class execution 
    293       -do-jar-with-manifest:    JAR building (if you are using a manifest) 
    294       -do-jar-without-manifest: JAR building (if you are not using a manifest) 
    295       run:                      execution of project 
    296       -javadoc-build:           Javadoc generation 
    297       test-report:              JUnit report generation 
    298  
    299     An example of overriding the target for project execution could look like this: 
    300  
    301         <target name="run" depends="TMCSim-impl.jar"> 
    302             <exec dir="bin" executable="launcher.exe"> 
    303                 <arg file="${dist.jar}"/> 
    304             </exec> 
    305         </target> 
    306  
    307     Notice that the overridden target depends on the jar target and not only on 
    308     the compile target as the regular run target does. Again, for a list of available 
    309     properties which you can use, check the target you are overriding in the 
    310     nbproject/build-impl.xml file. 
    311  
    312     --> 
    313265</project> 
  • trunk/src/tmcsim/client/ATMSBatchDriver.java

    r157 r158  
    141141            System.exit(0); 
    142142        } 
     143        // Initialize the highway model 
    143144        incidents = new HashMap<String, List<String>> (); 
    144145        highways = new Highways( 
     
    175176                    long simtime = theCoorInt.getCurrentSimulationTime(); 
    176177                    currentClock = formatInterval(simtime); 
    177                     long ATMStime = theCoorInt.getATMStime();        
    178                     Date atmsdate = new Date(ATMStime); 
    179                     currentATMStime = formatter.format(atmsdate); 
     178                    // For Debugging, show the ATMS time 
     179//                    long ATMStime = theCoorInt.getATMStime();        
     180//                    Date atmsdate = new Date(ATMStime); 
     181//                    currentATMStime = formatter.format(atmsdate); 
    180182                    try { 
    181183                        simClock = formatter.parse(currentClock); 
     
    188190                } catch (RemoteException ex) 
    189191                { 
     192                    System.out.println("Remote Exception reading sim or ATMS clock time"); 
    190193                    Logger.getLogger(ATMSBatchDriver.class.getName()).log(Level.SEVERE, null, ex); 
    191194                } 
  • trunk/src/tmcsim/client/ATMSBatchViewer.form

    r152 r158  
    44  <Properties> 
    55    <Property name="defaultCloseOperation" type="int" value="3"/> 
     6    <Property name="title" type="java.lang.String" value="ATMS Batch Driver"/> 
    67  </Properties> 
    78  <SyntheticProperties> 
  • trunk/src/tmcsim/client/ATMSBatchViewer.java

    r152 r158  
    7575 
    7676        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 
     77        setTitle("ATMS Batch Driver"); 
    7778 
    7879        lstEvents.setFont(new java.awt.Font("Noto Mono", 0, 12)); // NOI18N 
Note: See TracChangeset for help on using the changeset viewer.