diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Client.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Client.java index 26dbd0604ae39d1cd4760b5652b1a3e81ad5dca2..f712e71dd50031f6c3acfc08f61b38b40acbb9a6 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Client.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Client.java @@ -4,13 +4,12 @@ import java.io.*; import java.net.*; /** - * This client program establishes a socket connection to the {@link TcpExamples.TcpExample4DispatchServer}, + * This client program establishes a socket connection to the , * then checks how long it takes to read the single line it expects as a server response. * The modification I have added is it checks for a password from the server. And it matches it says success and disconnects - * No fancy footwork here, it is pretty simple and similar to {@link TcpExamples.TcpExample3Client}. + * No fancy footwork here, it is pretty simple and similar to TcpExamples.TcpExample3Client}. + * borrowed code from class * - * @see TcpExample4DispatchServer - * @see TcpExample4HandlerThread * * @see <a href="../../../src/TcpExamples/TcpExample4TerminalLog.txt" target="blank">TcpExample4TerminalLog.txt</a> * @see <a href="../../../src/TcpExamples/TcpExample4SequenceDiagram.png" target="blank">TcpExample4SequenceDiagram.png</a> @@ -19,7 +18,7 @@ import java.net.*; * @author Don McGregor * @author Don Brutzman * @author MV3500 class - * @MarkMM + * @author MarkMM */ public class Matiski2Client { diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2HandlerThread.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2HandlerThread.java index dd70c8524af605297e581e18fd8ba936518c8129..beb348bd1d096450c0779136f34b0243eb18de2f 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2HandlerThread.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2HandlerThread.java @@ -5,18 +5,16 @@ import java.net.*; /** * <p> - * This utility class supports the {@link TcpExamples.TcpExample4DispatchServer} program, + * This utility class supports the TcpExamples.TcpExample4DispatchServer program, * handling all programming logic needed for a new socket connection * to run in a thread of its own. This is the server * portion as well, so we artificially invent what happens * if the server can't respond to a connection for several seconds. * </p> * <p> - * Warning: do not run this class! It is created and used automatically by {@link TcpExamples.TcpExample4DispatchServer} at run time. + * Warning: do not run this class! It is created and used automatically by TcpExamples.TcpExample4DispatchServer} at run time. * </p> - * - * @see TcpExample4Client - * @see TcpExample4DispatchServer + * see examples * * @see <a href="../../../src/TcpExamples/TcpExample4TerminalLog.txt" target="blank">TcpExample4TerminalLog.txt</a> * @see <a href="../../../src/TcpExamples/TcpExample4SequenceDiagram.png" target="blank">TcpExample4SequenceDiagram.png</a> @@ -25,6 +23,7 @@ import java.net.*; * @author Don McGregor * @author Don Brutzman * @author MV3500 class + * borrowed heavily from above authors */ public class Matiski2HandlerThread extends Thread { diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Server.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Server.java index 7676d44b9b53f3e8f41ddef3fa824006d9b435e2..2d4360b3120d398c581fc7089be79bf800c4a477 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Server.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Matiski/Matiski2Server.java @@ -9,8 +9,6 @@ import java.net.*; * This advanced technique is often used in high=performance high=capacity server programs. * * - * @see TcpExample4Client - * @see Matiski2HandlerThread * * @see <a href="../../../src/TcpExamples/TcpExample4TerminalLog.txt" target="blank">TcpExample4TerminalLog.txt</a> * @see <a href="../../../src/TcpExamples/TcpExample4SequenceDiagram.png" target="blank">TcpExample4SequenceDiagram.png</a> @@ -19,6 +17,7 @@ import java.net.*; * @author Don McGregor * @author Don Brutzman * @author MV3500 class + * borrowed heavily from above authors */ public class Matiski2Server { diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Williams/README.md b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Williams/README.md index c0275ad9b1479210bfff27c360bdb1ca50d1ddb9..a1c26dac941cf60805b78c8b235494c74e253bfc 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Williams/README.md +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Williams/README.md @@ -1,15 +1,9 @@ For Homework 3, I modified the OpenDIS ExampleSimulationProgram to enhance its functionality by experimenting with entity enumeration values and adjusting the network communication setup. -Specifically, I changed the entities in the simulation to a Swedish Poseidon-class surface vessel -(Entity 1) and a Triton-class surface vessel (Entity 2) from the dis entities list. -I assigned Entity 1 to the friendly force and Entity 2 to the enemy force to simulate an adversarial scenario, -and I configured a FirePDU for Entity 1 with custom munition settings. On the networking side, I configured the -program to use UDP multicast for distribution of the PDUs across -multiple participants in a simulation environment. This choice was driven by the need for -low-latency communication in large-scale simulations, where UDP's minimal overhead is -advantageous, and multicast ensures that updates reach all participants simultaneously. I also +On the networking side, I configured the program to use UDP multicast for distribution of the PDUs across +multiple participants in the simulation. I did this to attempt to create the +low-latency communication needed in large-scale simulations, where UDP's minimal overhead is +advantageous, and multicast ensures that updates reach all clients at the same time. I also enabled verbose logging to facilitate debugging. Additionally, I adjusted the simulation loop to increment Entity 1’s position in each iteration, simulating movement, and set -the loop to run for a maximum of 10 iterations, with the ability to terminate early if certain -conditions are met. In my opinion, these changes improve the program’s ability to simulate realistic -scenarios while maintaining efficient and responsive network communication. \ No newline at end of file +the loop to run for a maximum of 10 iterations. \ No newline at end of file