From f8b7cbd542dfda7a4cb41c6ad6dd99218e2eb511 Mon Sep 17 00:00:00 2001 From: "bruce.chojnacki" <bruce.chojnacki@nps.edu> Date: Wed, 10 May 2023 11:13:26 -0700 Subject: [PATCH] HW3 --- .../homework3/Chojnacki/ExampleSimulationProgram.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assignments/src/MV3500Cohort2023MarchJune/homework3/Chojnacki/ExampleSimulationProgram.java b/assignments/src/MV3500Cohort2023MarchJune/homework3/Chojnacki/ExampleSimulationProgram.java index 7ad05cf862..70cf58dc5f 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; } -- GitLab