Skip to content
Snippets Groups Projects
Commit 336b09df authored by Brutzman, Don's avatar Brutzman, Don
Browse files

javadoc

parent 5936b1e7
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ import java.util.logging.Logger;
* that includes DIS-capable entities performing tasks of interest, and then reporting activity via PDUs
* to the network.
* Default program initialization includes PDU recording turned on by default.
* @see <a href="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/blob/master/examples/src/OpenDis7Examples/ExampleSimulationProgramLog.txt">ExampleSimulationProgramLog.txt</a>
*/
public class ExampleSimulationProgram
{
......@@ -38,13 +39,13 @@ public class ExampleSimulationProgram
double simulationTime;
/**
* Output prefix to identify this class (override in subclass), helps with logging
* Output prefix to help with logging by identifying this class (overridden in subclass).
*/
protected static String TRACE_PREFIX;
/**
* This runSimulationLoops() method is for you, a programmer-modifiable code block
* for defining and running a new simulation of interest.
* This runSimulationLoops() method is for you, a customizable programmer-modifiable
* code block for defining and running a new simulation of interest.
*
* Welcome! Other parts of this program handle bookkeeping and plumbing tasks so that
* you can focus on your model entities and activities.
......@@ -151,7 +152,7 @@ public class ExampleSimulationProgram
// loop now finished, check whether to terminate if simulation complete, otherwise continue
if (simulationComplete || (simulationLoopCount > 10000)) // for example; including fail-safe condition is good
{
System.out.println ("... [Termination condition met, simulationComplete=" + simulationComplete + "]"); // ", final loopCount=" + loopCount +
System.out.println ("... [loop termination condition met, simulationComplete=" + simulationComplete + "]"); // ", final loopCount=" + loopCount +
break;
}
} // end of simulation loop
......
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