diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/README.md b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/README.md index a1f900c417af2114b2bd482ba58370ab58a1c751..2d70b8de0eee2fd32ebe9532f5a343ebd070c4dc 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/README.md +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/README.md @@ -4,9 +4,24 @@ ## Description -Modification to ... +Assigment 3, show a simple Modeling & Simulation loop. + +- "Add DIS outputs (general skills)" + + +<!-- + +Assigment 4 + +- Show use of Simkit, DIS and Viskit together. + +Final essay + +- What do you think? + + "And you get to use the word networking and combination, whatever else interest you, + you know, thesis, challenging for my warfare community cell phone, thinking about international partnerships". -<!-- Phrases taken from: <b>https://www.divein.com/everyday/monday-motivation-quotes/</b> diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/ExampleSimulationProgram.java b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/RomeroSimulationProgram.java similarity index 97% rename from assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/ExampleSimulationProgram.java rename to assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/RomeroSimulationProgram.java index 6372a714e6a04a55eb71c38868c54acfa5ec9a21..8c3664dfb408fe2a5bfe73f548320cda92ed25cd 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/ExampleSimulationProgram.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Romero/RomeroSimulationProgram.java @@ -25,7 +25,7 @@ import java.util.logging.Logger; * @see <a href="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/blob/master/examples/src/OpenDis7Examples/ExampleSimulationProgramWireshark.png" target="_blank">ExampleSimulationProgramWireshark.png</a> * @see <a href="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/blob/master/examples/src/OpenDis7Examples/ExampleSimulationProgramSequenceDiagram.png" target="_blank">ExampleSimulationProgramSequenceDiagram.png</a> */ -public class ExampleSimulationProgram +public class RomeroSimulationProgram { /* **************************** infrastructure code, modification is seldom needed ************************* */ @@ -72,7 +72,7 @@ public class ExampleSimulationProgram */ // base constructor is not invoked automatically by other constructors // https://stackoverflow.com/questions/581873/best-way-to-handle-multiple-constructors-in-java - public ExampleSimulationProgram() + public RomeroSimulationProgram() { initialize(); } @@ -80,7 +80,7 @@ public class ExampleSimulationProgram * Constructor to create an instance of this class. * @param newDescriptor describes this program, useful for logging and debugging */ - public ExampleSimulationProgram(String newDescriptor) + public RomeroSimulationProgram(String newDescriptor) { descriptor = newDescriptor; initialize(); @@ -90,7 +90,7 @@ public class ExampleSimulationProgram * @param address network address to use * @param port corresponding network port to use */ - public ExampleSimulationProgram(String address, int port) + public RomeroSimulationProgram(String address, int port) { disChannel.setNetworkAddress (address); disChannel.setNetworkPort (port); @@ -299,7 +299,7 @@ public class ExampleSimulationProgram } catch (InterruptedException iex) // handle any exception that your code might choose to provoke! { - Logger.getLogger(ExampleSimulationProgram.class.getSimpleName()).log(Level.SEVERE, null, iex); + Logger.getLogger(RomeroSimulationProgram.class.getSimpleName()).log(Level.SEVERE, null, iex); } } @@ -386,7 +386,7 @@ public class ExampleSimulationProgram } /** Locally instantiable copy of program, can be subclassed. */ - protected static ExampleSimulationProgram thisProgram; + protected static RomeroSimulationProgram thisProgram; /** * Main method is first executed when a program instance is loaded. @@ -396,7 +396,7 @@ public class ExampleSimulationProgram */ public static void main(String[] args) { - thisProgram = new ExampleSimulationProgram("test constructor"); // create instance of self within static main() method + thisProgram = new RomeroSimulationProgram("test constructor"); // create instance of self within static main() method thisProgram.disChannel.printlnTRACE("main() started..."); diff --git a/examples/src/ViskitOpenDis7Examples/viskitProject.xml b/examples/src/ViskitOpenDis7Examples/viskitProject.xml index 1d20dbac80274c45b7e83d70c0852ed95ea99f27..9fb374249ecf197464b52cf4fff3f53b7dc083cd 100644 --- a/examples/src/ViskitOpenDis7Examples/viskitProject.xml +++ b/examples/src/ViskitOpenDis7Examples/viskitProject.xml @@ -9,8 +9,9 @@ </BuildDirectory> <DistDirectory name="dist" /> <LibDirectory name="lib" /> - <Cached></Cached> + <Cached /> <extraClassPaths> + <path value="C:/Users/RJRRLocal/MOVES/Q5/MV3500/src/NetworkedGraphicsMV3500/examples/src/ViskitOpenDis7Examples/lib/Networked_Graphics_MV3500_examples.jar" /> </extraClassPaths> </ViskitProject>