diff --git a/assignments/src/MV3500Cohort2023MarchJune/homework3/Chojnacki/ExampleSimulationProgram.java b/assignments/src/MV3500Cohort2023MarchJune/homework3/Chojnacki/ExampleSimulationProgram.java index 7ad05cf86242849e80091ed1657dfffec1a7acf6..70cf58dc5f1fe865bccca916f6bb16c4eaa8d9e7 100644 --- a/assignments/src/MV3500Cohort2023MarchJune/homework3/Chojnacki/ExampleSimulationProgram.java +++ b/assignments/src/MV3500Cohort2023MarchJune/homework3/Chojnacki/ExampleSimulationProgram.java @@ -107,7 +107,7 @@ public class ExampleSimulationProgram { /** seconds for real-time execution (not simulation time, which may or may not be the same) */ final double SIMULATION_LOOP_DURATION_SECONDS = 1.0; - final int SIMULATION_MAX_LOOP_COUNT = 10; // be deliberate out out there! also avoid infinite loops. + final int SIMULATION_MAX_LOOP_COUNT = 15; // be deliberate out 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? boolean fireBool = false; @@ -214,16 +214,16 @@ 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 ("Phase complete. Next phase initiating..."); // make your reports: narrative code for CommentPdu here (set all to empty strings to avoid sending) - narrativeMessage1 = "MV3500 ExampleSimulationProgramAllen_3"; + narrativeMessage1 = "MV3500 Homework 3 - Simulation Program"; narrativeMessage2 = "runSimulation() loop " + simulationLoopCount; - narrativeMessage3 = "this is working!"; // intentionally blank for testing + narrativeMessage3 = "Simulation Started!"; // intentionally blank for testing // your loop termination condition goes here - if (simulationLoopCount > 4) // for example + if (simulationLoopCount > 5) // for example { simulationComplete = true; }