From f1e155474c9ff0b24904f5c2a43634ab0d30ea02 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@DESKTOP-2S09UKA>
Date: Sat, 24 Aug 2019 23:11:48 -0700
Subject: [PATCH] corrected class name in output messages, provide full
 invocation instructions

---
 .../src/OpenDis7Examples/PduReaderPlayer.java |  8 ++++--
 .../OpenDis7Examples/PduReaderPlayerLog.txt   | 25 +++++++++++++++++++
 2 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 examples/src/OpenDis7Examples/PduReaderPlayerLog.txt

diff --git a/examples/src/OpenDis7Examples/PduReaderPlayer.java b/examples/src/OpenDis7Examples/PduReaderPlayer.java
index 17bf5d8971..aaec6d40d0 100644
--- a/examples/src/OpenDis7Examples/PduReaderPlayer.java
+++ b/examples/src/OpenDis7Examples/PduReaderPlayer.java
@@ -18,7 +18,7 @@ import java.util.Scanner;
  */
 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 int DIS_PORT = 3000;
 
@@ -33,6 +33,8 @@ public class PduReaderPlayer
     String outDir = DEFAULT_OUTPUTDIR;
     String mcast = MCAST_ADDR;
     int port = DIS_PORT;
+    
+    System.out.println("DisExamplesOpenDis7.PduReaderPlayer started...");
 
     switch (args.length) {
       case 0:
@@ -73,7 +75,9 @@ public class PduReaderPlayer
           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) {
       System.err.println("Exception: " + ex.getClass().getSimpleName() + ": " + ex.getLocalizedMessage());
diff --git a/examples/src/OpenDis7Examples/PduReaderPlayerLog.txt b/examples/src/OpenDis7Examples/PduReaderPlayerLog.txt
new file mode 100644
index 0000000000..66a039cc48
--- /dev/null
+++ b/examples/src/OpenDis7Examples/PduReaderPlayerLog.txt
@@ -0,0 +1,25 @@
+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
-- 
GitLab