Simulator/src/simulation/main/Main.java
/**
	 * Run the program.
	 * 
	 * @param args
	 *            numberOfAgents timeStep numberOfTrials randomSeed NOGUI.
	 */
Run the program.

@param args
numberOfAgents timeStep numberOfTrials randomSeed NOGUI.
Run the program . @param args numberOfAgents timeStep numberOfTrials randomSeed NOGUI .
public static void main(String[] args) {
		long time = System.currentTimeMillis();
		if (printOuts)
			System.out.println("Starting simulations..");
		for (int i = 0; i < numberOfTrials; i++) {
			if (printOuts)
				System.out.print(i + 1 + "/" + numberOfTrials);
			performSimulation(i);
			if (printOuts)
				System.out.println(" DONE.");
		}
		if (printOuts) {
			System.out.print("DONE in ");
			System.out.println(System.currentTimeMillis() - time);
		}
	}
public static void main ( String [ ] args ) { long time = System . currentTimeMillis ( ) ; if ( printOuts ) System . out . println ( "Starting simulations.." ) ; for ( int i = 0 ; i < numberOfTrials ; i ++ ) { if ( printOuts ) System . out . print ( i + 1 + "/" + numberOfTrials ) ; performSimulation ( i ) ; if ( printOuts ) System . out . println ( " DONE." ) ; } if ( printOuts ) { System . out . print ( "DONE in " ) ; System . out . println ( System . currentTimeMillis ( ) - time ) ; } }
Run the program.
Run the program .
// log the time. // print start of simulation // perform numberOfTrials simulation runs // finalize.