Skip to content
Snippets Groups Projects
Commit 645b0b29 authored by johns's avatar johns
Browse files

Modified (formatting and loop count)

parent 12c2f45b
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ import java.util.logging.Logger;
* @see <a href="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/blob/master/examples/src/OpenDis7Examples/ExampleSimulationProgramSequenceDiagram.png">ExampleSimulationProgramSequenceDiagram.png</a>
*
* JOHN FREDRICKSON
* -formatting changes made
* -set to loop 15 times
*
*/
public class ExampleSimulationProgram
......@@ -196,7 +198,7 @@ public class ExampleSimulationProgram
{
try
{
final int SIMULATION_MAX_LOOP_COUNT = 10; // be deliberate out there! also avoid infinite loops.
final int SIMULATION_MAX_LOOP_COUNT = 15; // be deliberate out there! also avoid infinite loops.
int simulationLoopCount = 0; // variable, initialized at 0
boolean simulationComplete = false; // sentinel variable as termination condition, are we done yet?
......@@ -230,7 +232,7 @@ public class ExampleSimulationProgram
// etc. etc. your code goes here for your simulation of interest
// something happens between my simulation entities, la de da de da...
System.out.println ("... My simulation just did something, no really...");
System.out.println ("... My simulation just did something, no really...\n");
System.out.flush(); // make sure this arrives to user even if other threads somehow become deadlocked
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment