From 672707040cb487144921fd46e0b3e50fb9ffdf1a Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Tue, 3 Aug 2021 11:24:14 -0700 Subject: [PATCH] add comments for student clarity --- .../OpenDis7Examples/ExampleSimulationProgram.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/src/OpenDis7Examples/ExampleSimulationProgram.java b/examples/src/OpenDis7Examples/ExampleSimulationProgram.java index aa798ba67e..52d83df2c1 100644 --- a/examples/src/OpenDis7Examples/ExampleSimulationProgram.java +++ b/examples/src/OpenDis7Examples/ExampleSimulationProgram.java @@ -16,7 +16,8 @@ import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; -/** The purpose of this program is to provide an easily modifiable example simulation program. */ +/** The purpose of this program is to provide an easily modifiable example simulation program + * that includes DIS-capable entities doing tasks and reporting them. */ public class ExampleSimulationProgram { /** @@ -39,7 +40,7 @@ public class ExampleSimulationProgram */ public ExampleSimulationProgram() { - // Under consideration. Constructor is not currently needed. + // Constructor is under consideration. Constructor is not currently needed. } /** @@ -238,7 +239,8 @@ public class ExampleSimulationProgram FirePdu firePdu = pduFactory.makeFirePdu(); // should we customize this munition? what is it for your simulation? - while (loopCount < MAX_LOOP_COUNT) // loop the simulation while allowed, can set additional conditions to break + // loop the simulation while allowed, programmer can set additional conditions to break out and finish + while (loopCount < MAX_LOOP_COUNT) { String narrativeMessage1, narrativeMessage2, narrativeMessage3; // initialize loop variables @@ -256,8 +258,8 @@ public class ExampleSimulationProgram // etc. etc. your code goes here - - + // something happens between my simulation entities, la de da de da... + System.out.println ("... My simulation just did something, no really..."); // make your reports: narrative code for CommentPdu here (set all to empty strings to avoid sending) -- GitLab