Skip to content
Snippets Groups Projects
Commit f1e15547 authored by brutzman's avatar brutzman
Browse files

corrected class name in output messages, provide full invocation instructions

parent fbf6ef17
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ import java.util.Scanner; ...@@ -18,7 +18,7 @@ import java.util.Scanner;
*/ */
public class PduReaderPlayer public class PduReaderPlayer
{ {
private final static String DEFAULT_OUTPUTDIR = "./pduLog"; private final static String DEFAULT_OUTPUTDIR = "pduLog";
private final static String MCAST_ADDR = "239.1.2.3"; private final static String MCAST_ADDR = "239.1.2.3";
private final static int DIS_PORT = 3000; private final static int DIS_PORT = 3000;
...@@ -33,6 +33,8 @@ public class PduReaderPlayer ...@@ -33,6 +33,8 @@ public class PduReaderPlayer
String outDir = DEFAULT_OUTPUTDIR; String outDir = DEFAULT_OUTPUTDIR;
String mcast = MCAST_ADDR; String mcast = MCAST_ADDR;
int port = DIS_PORT; int port = DIS_PORT;
System.out.println("DisExamplesOpenDis7.PduReaderPlayer started...");
switch (args.length) { switch (args.length) {
case 0: case 0:
...@@ -73,7 +75,9 @@ public class PduReaderPlayer ...@@ -73,7 +75,9 @@ public class PduReaderPlayer
break; break;
} }
} }
System.out.println("Ending pdu playback from "+outDir); System.out.println("Ending pdu files playback for directory " + outDir);
System.out.println("DisExamplesOpenDis7.PduReaderPlayer complete.");
System.exit(0); // not sure why this is necessary with Netbeans...
} }
catch (IOException ex) { catch (IOException ex) {
System.err.println("Exception: " + ex.getClass().getSimpleName() + ": " + ex.getLocalizedMessage()); System.err.println("Exception: " + ex.getClass().getSimpleName() + ": " + ex.getLocalizedMessage());
......
Invocation instructions:
0. check for existence of recorded files in directory, e.g. examples/pduLog/Pdusave.dislog
1. run or debug PduReaderPlayer.java
2. send PDUs from another program such as AllPduSender.java (used here)
3. also running AllPduReceiver can confirm that DIS replay actually occurs.
4. Type p/enter to pause, r/enter to resume, q/enter to quit
Program response:
===================================================
DisExamplesOpenDis7.PduReaderPlayer started...
Beginning pdu playback from directory pduLog
Replaying DIS logs.
Replaying C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\pduLog\Pdusave.dislog
Beginning of DIS capture file, Pdusave.dislog.
Type p/enter to pause, r/enter to resume, q/enter to quit
72
End of replay from Pdusave.dislog
End of DIS capture file, Pdusave.dislog.
q
Ending pdu files playback for directory pduLog
DisExamplesOpenDis7.PduReaderPlayer complete.
BUILD SUCCESSFUL (total time: 20 seconds)
\ No newline at end of file
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