diff --git a/examples/src/OpenDis7Examples/PduListenerSaver.java b/examples/src/OpenDis7Examples/PduListenerSaver.java index 7ecf448b85024ade7067a8450201d8286e3b3105..a3a80ef7d1b2d46fa3ae48ef023024187a6c45d7 100644 --- a/examples/src/OpenDis7Examples/PduListenerSaver.java +++ b/examples/src/OpenDis7Examples/PduListenerSaver.java @@ -67,14 +67,14 @@ public class PduListenerSaver mystate state = mystate.RUNNING; Scanner terminalKeyboardScanner = new Scanner(System.in); - PduRecorder recorder = new PduRecorder(outputDirectory, multicastAddress, multicastPort); // assumes save on quit + PduRecorder pduRecorder = new PduRecorder(outputDirectory, multicastAddress, multicastPort); // assumes save on quit while (true) // monitor user input via keyboard { System.out.println("Type p/enter to pause, r/enter to resume, q/enter to quit"); String line = terminalKeyboardScanner.nextLine(); if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) { - recorder.stopPause(); + pduRecorder.stopPause(); state = mystate.PAUSED; System.out.println("... now PAUSED"); } @@ -82,7 +82,7 @@ public class PduListenerSaver System.out.println("... still PAUSED"); } else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) { - recorder.startResume(); + pduRecorder.startResume(); state = mystate.RUNNING; System.out.println("... now RUNNING"); } @@ -91,11 +91,11 @@ public class PduListenerSaver } else if (line.equalsIgnoreCase("q")) { System.out.println("... QUIT"); - recorder.end(); + pduRecorder.end(); break; } } System.out.println("Ending PduListenerSaver pdu recording, saved to file:"); - System.out.println(recorder.getLogFilePath()); + System.out.println(pduRecorder.getLogFilePath()); } }