diff --git a/examples/src/OpenDis7Examples/PduReaderPlayer.java b/examples/src/OpenDis7Examples/PduReaderPlayer.java index 17bf5d89710d59fd5ca196a786f956f30c444f1e..aaec6d40d0e1c86f4901a3ef5fa75cf3e1cbedb1 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 0000000000000000000000000000000000000000..66a039cc480a1ec4d54e00578f45a39f589216f2 --- /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