diff --git a/examples/src/OpenDis7Examples/ExampleTrackInterpolation.java b/examples/src/OpenDis7Examples/ExampleTrackInterpolation.java index 70e6bcb39ee00a73ff71268b2e332e2076b0d4b5..fe053b234f1b2a7eb945a47d434a1e5d3347e279 100644 --- a/examples/src/OpenDis7Examples/ExampleTrackInterpolation.java +++ b/examples/src/OpenDis7Examples/ExampleTrackInterpolation.java @@ -203,8 +203,9 @@ public class ExampleTrackInterpolation extends ExampleSimulationProgram * @param simulationLoopCount current loop index * @param location current location * @param directionEntity current direction + * @return same object to permit progressive setters */ - public void reportPdu(int simulationLoopCount, Vector3Double location, EntityStatePdu.Direction directionEntity) + public ExampleTrackInterpolation reportPdu(int simulationLoopCount, Vector3Double location, EntityStatePdu.Direction directionEntity) { System.out.println (String.format("%2d ", simulationLoopCount) + "Entity location=(" + String.format("%4.1f", location.getX()) + ", " + @@ -213,6 +214,7 @@ public class ExampleTrackInterpolation extends ExampleSimulationProgram String.format("%-5s", directionEntity.name()) // + " " + espdu_1.getEntityLinearVelocity().toString() ); + return this; } /* Default constructors used unless otherwise defined/overridden. */ diff --git a/examples/src/OpenDis7Examples/ExampleTrackInterpolationLog.txt b/examples/src/OpenDis7Examples/ExampleTrackInterpolationLog.txt index 7285ca937d3f7f1710c795fea87995f025c391ea..87b9fd90b6e98b4780e8854ebb7d78eb7214ed82 100644 --- a/examples/src/OpenDis7Examples/ExampleTrackInterpolationLog.txt +++ b/examples/src/OpenDis7Examples/ExampleTrackInterpolationLog.txt @@ -13,7 +13,7 @@ run-single: [DisThreadedNetworkInterface] createThreads() sendingThread.isAlive()=true Network confirmation: address=239.1.2.3 port=3000 Beginning pdu save to directory ./pduLog -Recorder log file open: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\pduLog\PduCaptureLog176.dislog +Recorder log file open: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\pduLog\PduCaptureLog.dislog [DisThreadedNetworkInterface] using network interface Intel(R) Wi-Fi 6E AX210 160MHz [DisThreadedNetworkInterface] datagramSocket.joinGroup address=239.1.2.3 port=3000 isConnected()=false createDatagramSocket() complete. [DisThreadedNetworkInterface] createThreads() receiveThread.isAlive()=true @@ -73,8 +73,8 @@ pduTrack_1 duration = 42.0 seconds = 0 ticks <head> <meta content='ExampleTrackInterpolation.x3d' name='title'/> <meta content='Conversion of ESPDU track into X3D animation interpolators and LineSet.' name='description'/> - <meta content='3 January 2022' name='created'/> - <meta content='3 January 2022' name='modified'/> + <meta content='1 January 2022' name='created'/> + <meta content='6 January 2022' name='modified'/> <meta content='Don Brutzman' name='creator'/> <meta content='https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/blob/master/examples/src/OpenDis7Examples/ExampleTrackInterpolation.x3d' name='identifier'/> <meta content='PduTrack utility, open-dis7-java Library https://github.com/open-dis/open-dis7-java' name='generator'/> @@ -246,6 +246,6 @@ pduTrack_1 duration = 42.0 seconds = 0 ticks *** killThread() status: receiveThread.isAlive()=false receiveThread.isInterrupted()=true *** Thread close status: sendingThread.isAlive()=false receiveThread.isAlive()=false -PduRecorder.stop() closing recorder log file: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\pduLog\PduCaptureLog176.dislog +PduRecorder.stop() closing recorder log file: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\pduLog\PduCaptureLog.dislog [OpenDis7Examples.ExampleTrackInterpolation] complete. BUILD SUCCESSFUL (total time: 12 seconds)