From d6e2fc7bb9b0e9808b23ebe02e3b8c4f12b9a73b Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Sun, 15 Aug 2021 09:42:52 -0700 Subject: [PATCH] updated test sat, run 5 times --- .../src/OpenDis4Examples/EspduSender.java | 2 +- .../src/OpenDis4Examples/EspduTerminalLog.txt | 215 ++++++++++-------- 2 files changed, 118 insertions(+), 99 deletions(-) diff --git a/examples/src/OpenDis4Examples/EspduSender.java b/examples/src/OpenDis4Examples/EspduSender.java index 26a0ce5e66..ed43dc4562 100644 --- a/examples/src/OpenDis4Examples/EspduSender.java +++ b/examples/src/OpenDis4Examples/EspduSender.java @@ -18,7 +18,7 @@ public class EspduSender { /** Defining number of packets to send is superior to infinite loops * which have possible hazard of unstoppably sending packets as a zombie process */ - public static final int NUMBER_TO_SEND = 5000; + public static final int NUMBER_TO_SEND = 5; // 5000; /** Type of network connection */ public enum NetworkMode { diff --git a/examples/src/OpenDis4Examples/EspduTerminalLog.txt b/examples/src/OpenDis4Examples/EspduTerminalLog.txt index a0f6d09227..cfa5e53f47 100644 --- a/examples/src/OpenDis4Examples/EspduTerminalLog.txt +++ b/examples/src/OpenDis4Examples/EspduTerminalLog.txt @@ -1,98 +1,117 @@ -Invocation instructions: -1. run/debug EspduReceiver.java (since sender does not block, be ready to listen) -2. run/debug EspduSender.java - -Program responses: - -=================================================== -run: -DisExamples.EspduSender started... send 5 ESPDUs, initial index=0 -Sending 5 ESPDU packets to /239.1.2.3 --121.87693999999999 -lat, lon:36.595517, -121.87693999999999 -DIS coord:-2707488.3677768684, -4353666.735244378, 3781450.3202754413 -Sending broadcast datagram packet to /127.255.255.255 -Sending broadcast datagram packet to /172.20.220.105 -Sending broadcast datagram packet to /10.0.0.255 -Espdu #0 EID=[1,1,2] - DIS coordinates location=[-2707488.3677768684,-4353666.735244378,3781450.3202754413] --121.877 -lat, lon:36.595517, -121.877 -DIS coord:-2707492.9269245286, -4353663.899966802, 3781450.3202754413 -Sending broadcast datagram packet to /127.255.255.255 -Sending broadcast datagram packet to /172.20.220.105 -Sending broadcast datagram packet to /10.0.0.255 -Espdu #1 EID=[1,1,2] - DIS coordinates location=[-2707492.9269245286,-4353663.899966802,3781450.3202754413] --121.87693999999999 -lat, lon:36.595517, -121.87693999999999 -DIS coord:-2707488.3677768684, -4353666.735244378, 3781450.3202754413 -Sending broadcast datagram packet to /127.255.255.255 -Sending broadcast datagram packet to /172.20.220.105 -Sending broadcast datagram packet to /10.0.0.255 -Espdu #2 EID=[1,1,2] - DIS coordinates location=[-2707488.3677768684,-4353666.735244378,3781450.3202754413] --121.877 -lat, lon:36.595517, -121.877 -DIS coord:-2707492.9269245286, -4353663.899966802, 3781450.3202754413 -Sending broadcast datagram packet to /127.255.255.255 -Sending broadcast datagram packet to /172.20.220.105 -Sending broadcast datagram packet to /10.0.0.255 -Espdu #3 EID=[1,1,2] - DIS coordinates location=[-2707492.9269245286,-4353663.899966802,3781450.3202754413] --121.87693999999999 -lat, lon:36.595517, -121.87693999999999 -DIS coord:-2707488.3677768684, -4353666.735244378, 3781450.3202754413 -Sending broadcast datagram packet to /127.255.255.255 -Sending broadcast datagram packet to /172.20.220.105 -Sending broadcast datagram packet to /10.0.0.255 -Espdu #4 EID=[1,1,2] - DIS coordinates location=[-2707488.3677768684,-4353666.735244378,3781450.3202754413] -BUILD SUCCESSFUL (total time: 7 seconds) - -=================================================== -run: -DisExamples.EspduReceiver started... -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] -Bundle size is 1 -got PDU of type: edu.nps.moves.dis.FirePdu - -=================================================== - +Invocation instructions: +1. run/debug EspduReceiver.java (since sender does not block, must first be ready to listen) +2. run/debug EspduSender.java + +Program responses for sender and receiver: + +=================================================== +ant -f C:\\x-nps-gitlab\\NetworkedGraphicsMV3500\\examples -Dnb.internal.action.name=run.single -Djavac.includes=OpenDis4Examples/EspduSender.java -Drun.class=OpenDis4Examples.EspduSender run-single +init: +Deleting: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\built-jar.properties +deps-jar: +Updating property file: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\built-jar.properties +Compiling 1 source file to C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\classes +compile-single: +run-single: +OpenDis4Examples.EspduSender started... send 5 ESPDUs, initial index=0 +Sending 5 ESPDU packets to /239.1.2.3 +-121.87693999999999 +lat, lon:36.595517, -121.87693999999999 +DIS coord:-2707488.3677768684, -4353666.735244378, 3781450.3202754413 +Sending broadcast datagram packet to /127.255.255.255 +Sending broadcast datagram packet to /172.23.143.255 +Sending broadcast datagram packet to /172.16.0.255 +Sending broadcast datagram packet to /172.20.209.219 +Espdu #0 EID=[1,1,2] + DIS coordinates location=[-2707488.3677768684,-4353666.735244378,3781450.3202754413] +-121.877 +lat, lon:36.595517, -121.877 +DIS coord:-2707492.9269245286, -4353663.899966802, 3781450.3202754413 +Sending broadcast datagram packet to /127.255.255.255 +Sending broadcast datagram packet to /172.23.143.255 +Sending broadcast datagram packet to /172.16.0.255 +Sending broadcast datagram packet to /172.20.209.219 +Espdu #1 EID=[1,1,2] + DIS coordinates location=[-2707492.9269245286,-4353663.899966802,3781450.3202754413] +-121.87693999999999 +lat, lon:36.595517, -121.87693999999999 +DIS coord:-2707488.3677768684, -4353666.735244378, 3781450.3202754413 +Sending broadcast datagram packet to /127.255.255.255 +Sending broadcast datagram packet to /172.23.143.255 +Sending broadcast datagram packet to /172.16.0.255 +Sending broadcast datagram packet to /172.20.209.219 +Espdu #2 EID=[1,1,2] + DIS coordinates location=[-2707488.3677768684,-4353666.735244378,3781450.3202754413] +-121.877 +lat, lon:36.595517, -121.877 +DIS coord:-2707492.9269245286, -4353663.899966802, 3781450.3202754413 +Sending broadcast datagram packet to /127.255.255.255 +Sending broadcast datagram packet to /172.23.143.255 +Sending broadcast datagram packet to /172.16.0.255 +Sending broadcast datagram packet to /172.20.209.219 +Espdu #3 EID=[1,1,2] + DIS coordinates location=[-2707492.9269245286,-4353663.899966802,3781450.3202754413] +-121.87693999999999 +lat, lon:36.595517, -121.87693999999999 +DIS coord:-2707488.3677768684, -4353666.735244378, 3781450.3202754413 +Sending broadcast datagram packet to /127.255.255.255 +Sending broadcast datagram packet to /172.23.143.255 +Sending broadcast datagram packet to /172.16.0.255 +Sending broadcast datagram packet to /172.20.209.219 +Espdu #4 EID=[1,1,2] + DIS coordinates location=[-2707488.3677768684,-4353666.735244378,3781450.3202754413] +BUILD SUCCESSFUL (total time: 12 seconds) + +=================================================== +ant -f C:\\x-nps-gitlab\\NetworkedGraphicsMV3500\\examples -Dnb.internal.action.name=run.single -Djavac.includes=OpenDis4Examples/EspduReceiver.java -Drun.class=OpenDis4Examples.EspduReceiver run-single +init: +Deleting: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\built-jar.properties +deps-jar: +Updating property file: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\built-jar.properties +Compiling 1 source file to C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\classes +compile-single: +run-single: +OpenDis4Examples.EspduReceiver started... +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.EntityStatePdu EID:[1, 1, 2] Location in DIS coordinates: [-2707488.3677768684, -4353666.735244378, 3781450.3202754413] +Bundle size is 1 +got PDU of type: edu.nps.moves.dis.FirePdu + +=================================================== + -- GitLab