Skip to content
Snippets Groups Projects
Commit 4d5bef9c authored by Brutzman, Don's avatar Brutzman, Don
Browse files

refine, refresh logs

parent 065a917d
No related branches found
No related tags found
No related merge requests found
...@@ -444,15 +444,17 @@ public class PduPlayer { ...@@ -444,15 +444,17 @@ public class PduPlayer {
// line = line.substring(PduRecorder.START_COMMENT_MARKER.length()); // line = line.substring(PduRecorder.START_COMMENT_MARKER.length());
// System.out.println(line + " "); // System.out.println(line + " ");
showPduCountsOneTime = true; // get the first one in there showPduCountsOneTime = true; // get the first one in there
} else if (line.trim().startsWith(PduRecorder.FINISH_COMMENT_MARKER)) { }
else if (line.trim().startsWith(PduRecorder.FINISH_COMMENT_MARKER))
{
System.out.print("Total PDUs: "); System.out.print("Total PDUs: ");
showCounts(); showCounts();
System.out.println(); System.out.println();
System.out.flush(); System.out.flush();
System.err.flush(); System.err.flush();
System.out.println("End of replay from " + f.getName()); System.out.println("PduPlayer handleComment() found FINISH_COMMENT_MARKER, end of replay from log file " + f.getName());
// System.out.println(line.substring(PduRecorder.FINISH_COMMENT_MARKER.length())); // System.out.println(line.substring(PduRecorder.FINISH_COMMENT_MARKER.length()));
// reset counters
scenarioPduCount = 0; scenarioPduCount = 0;
startNanoTime = null; startNanoTime = null;
returnValue = true; returnValue = true;
......
...@@ -9,100 +9,6 @@ warning: [options] bootstrap class path not set in conjunction with -source 8 ...@@ -9,100 +9,6 @@ warning: [options] bootstrap class path not set in conjunction with -source 8
compile-single: compile-single:
run-single: run-single:
PduPlayer begin() playing DIS logs found in ancestor pduLog directory. PduPlayer begin() playing DIS logs found in ancestor pduLog directory.
Replaying PDU log file with ENCODING_BASE64: C:\x3d-github\open-dis7-java\pduLog\PduRecorderSelfTestENCODING_BASE64_PduCaptureLog.dislog
Sent PDU: DisPduType 01 ENTITY_STATE
Sent PDU: DisPduType 02 FIRE
Sent PDU: DisPduType 03 DETONATION
Sent PDU: DisPduType 04 COLLISION
Sent PDU: DisPduType 05 SERVICE_REQUEST
Sent PDU: DisPduType 06 RESUPPLY_OFFER
Sent PDU: DisPduType 07 RESUPPLY_RECEIVED
Sent PDU: DisPduType 08 RESUPPLY_CANCEL
Sent PDU: DisPduType 09 REPAIR_COMPLETE
Sent PDU: DisPduType 10 REPAIR_RESPONSE
Sent PDU: DisPduType 11 CREATE_ENTITY
Sent PDU: DisPduType 12 REMOVE_ENTITY
Sent PDU: DisPduType 13 START_RESUME
Sent PDU: DisPduType 14 STOP_FREEZE
Sent PDU: DisPduType 15 ACKNOWLEDGE
Sent PDU: DisPduType 16 ACTION_REQUEST
Sent PDU: DisPduType 17 ACTION_RESPONSE
Sent PDU: DisPduType 18 DATA_QUERY
Sent PDU: DisPduType 19 SET_DATA
Sent PDU: DisPduType 20 DATA
Sent PDU: DisPduType 21 EVENT_REPORT
Sent PDU: DisPduType 22 COMMENT
Sent PDU: DisPduType 23 ELECTROMAGNETIC_EMISSION
Sent PDU: DisPduType 24 DESIGNATOR
Sent PDU: DisPduType 25 TRANSMITTER
Sent PDU: DisPduType 26 SIGNAL
Sent PDU: DisPduType 27 RECEIVER
Sent PDU: DisPduType 28 IDENTIFICATION_FRIEND_OR_FOE
Sent PDU: DisPduType 29 UNDERWATER_ACOUSTIC
Sent PDU: DisPduType 30 SUPPLEMENTAL_EMISSION_ENTITY_STATE
Sent PDU: DisPduType 31 INTERCOM_SIGNAL
Sent PDU: DisPduType 32 INTERCOM_CONTROL
Sent PDU: DisPduType 33 AGGREGATE_STATE
Sent PDU: DisPduType 34 ISGROUPOF
Sent PDU: DisPduType 35 TRANSFER_OWNERSHIP
Sent PDU: DisPduType 36 ISPARTOF
Sent PDU: DisPduType 37 MINEFIELD_STATE
Sent PDU: DisPduType 38 MINEFIELD_QUERY
Sent PDU: DisPduType 39 MINEFIELD_DATA
Sent PDU: DisPduType 40 MINEFIELD_RESPONSE_NACK
Sent PDU: DisPduType 41 ENVIRONMENTAL_PROCESS
Sent PDU: DisPduType 42 GRIDDED_DATA
Sent PDU: DisPduType 43 POINT_OBJECT_STATE
Sent PDU: DisPduType 44 LINEAR_OBJECT_STATE
Sent PDU: DisPduType 45 AREAL_OBJECT_STATE
Sent PDU: DisPduType 46 TIME_SPACE_POSITION_INFORMATION
Sent PDU: DisPduType 47 APPEARANCE
Sent PDU: DisPduType 48 ARTICULATED_PARTS
Sent PDU: DisPduType 49 LIVE_ENTITY_FIRE
Sent PDU: DisPduType 50 LIVE_ENTITY_DETONATION
Sent PDU: DisPduType 51 CREATE_ENTITY_RELIABLE
Sent PDU: DisPduType 52 REMOVE_ENTITY_RELIABLE
Sent PDU: DisPduType 53 START_RESUME_RELIABLE
Sent PDU: DisPduType 54 STOP_FREEZE_RELIABLE
Sent PDU: DisPduType 55 ACKNOWLEDGE_RELIABLE
Sent PDU: DisPduType 56 ACTION_REQUEST_RELIABLE
Sent PDU: DisPduType 57 ACTION_RESPONSE_RELIABLE
Sent PDU: DisPduType 58 DATA_QUERY_RELIABLE
Sent PDU: DisPduType 59 SET_DATA_RELIABLE
Sent PDU: DisPduType 60 DATA_RELIABLE
Sent PDU: DisPduType 61 EVENT_REPORT_RELIABLE
Sent PDU: DisPduType 62 COMMENT_RELIABLE
Sent PDU: DisPduType 63 RECORD_RELIABLE
Sent PDU: DisPduType 64 SET_RECORD_RELIABLE
Sent PDU: DisPduType 65 RECORD_QUERY_RELIABLE
Sent PDU: DisPduType 66 COLLISION_ELASTIC
Sent PDU: DisPduType 67 ENTITY_STATE_UPDATE
Sent PDU: DisPduType 68 DIRECTED_ENERGY_FIRE
Sent PDU: DisPduType 69 ENTITY_DAMAGE_STATUS
Sent PDU: DisPduType 70 INFORMATION_OPERATIONS_ACTION
Sent PDU: DisPduType 71 INFORMATION_OPERATIONS_REPORT
Sent PDU: DisPduType 72 ATTRIBUTE
Encoding'ENCODING_BINARY not recognized or supported
Replaying PDU log file with ENCODING_BINARY: C:\x3d-github\open-dis7-java\pduLog\PduRecorderSelfTestENCODING_BINARY_PduCaptureLog.dislog
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
Encoding'ENCODING_BINARY not recognized or supported
ENCODING_PLAINTEXT ENCODING_PLAINTEXT
Replaying PDU log file with ENCODING_PLAINTEXT: C:\x3d-github\open-dis7-java\pduLog\PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog Replaying PDU log file with ENCODING_PLAINTEXT: C:\x3d-github\open-dis7-java\pduLog\PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog
Sent PDU: DisPduType 01 ENTITY_STATE Sent PDU: DisPduType 01 ENTITY_STATE
...@@ -177,6 +83,6 @@ Sent PDU: DisPduType 69 ENTITY_DAMAGE_STATUS ...@@ -177,6 +83,6 @@ Sent PDU: DisPduType 69 ENTITY_DAMAGE_STATUS
Sent PDU: DisPduType 70 INFORMATION_OPERATIONS_ACTION Sent PDU: DisPduType 70 INFORMATION_OPERATIONS_ACTION
Sent PDU: DisPduType 71 INFORMATION_OPERATIONS_REPORT Sent PDU: DisPduType 71 INFORMATION_OPERATIONS_REPORT
Sent PDU: DisPduType 72 ATTRIBUTE Sent PDU: DisPduType 72 ATTRIBUTE
Total PDUs: 164 Total PDUs: 72
End of replay from PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog PduPlayer handleComment() found FINISH_COMMENT_MARKER, end of replay from log file PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog
BUILD SUCCESSFUL (total time: 8 seconds) BUILD SUCCESSFUL (total time: 8 seconds)
...@@ -28,7 +28,7 @@ import org.apache.commons.io.FilenameUtils; ...@@ -28,7 +28,7 @@ import org.apache.commons.io.FilenameUtils;
/** Utility to save PDUs received over the network to disk, greatly simplifying the capture of DIS streams by applications. /** Utility to save PDUs received over the network to disk, greatly simplifying the capture of DIS streams by applications.
* *
* Example <code>main()</code> self-test response shown in log file, example results also included. * Example <code>main()</code> self-test response shown in log file, example results also included.
* @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTest.log.txt">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTest.log.txt</a> * @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestLog.txt">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestLog.txt</a>
* @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BASE64_PduCaptureLog.dislog">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BASE64_PduCaptureLog.dislog</a> * @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BASE64_PduCaptureLog.dislog">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BASE64_PduCaptureLog.dislog</a>
* @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BINARY_PduCaptureLog.dislog">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BINARY_PduCaptureLog.dislog</a> * @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BINARY_PduCaptureLog.dislog">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_BINARY_PduCaptureLog.dislog</a>
* @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog</a> * @see <a href="https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog">https://github.com/open-dis/open-dis7-java/blob/master/src/edu/nps/moves/dis7/utilities/stream/PduRecorderSelfTestENCODING_PLAINTEXT_PduCaptureLog.dislog</a>
...@@ -288,7 +288,7 @@ public class PduRecorder // implements PduReceiver ...@@ -288,7 +288,7 @@ public class PduRecorder // implements PduReceiver
} }
try { try {
System.out.println(); System.out.println();
System.out.println("Closing recorder log file: " + logFile.getCanonicalPath()); System.out.println("PduRecorder.selfTest() stop() closing recorder log file: " + logFile.getCanonicalPath());
logFileWriter.close(); // a flush occurs first during a close logFileWriter.close(); // a flush occurs first during a close
} }
catch (IOException ex) { catch (IOException ex) {
......
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