Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
0ffb8a17
Commit
0ffb8a17
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
make reportPdu() chainable
parent
43c0ed8e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/src/OpenDis7Examples/ExampleTrackInterpolation.java
+3
-1
3 additions, 1 deletion
examples/src/OpenDis7Examples/ExampleTrackInterpolation.java
examples/src/OpenDis7Examples/ExampleTrackInterpolationLog.txt
+4
-4
4 additions, 4 deletions
...les/src/OpenDis7Examples/ExampleTrackInterpolationLog.txt
with
7 additions
and
5 deletions
examples/src/OpenDis7Examples/ExampleTrackInterpolation.java
+
3
−
1
View file @
0ffb8a17
...
...
@@ -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. */
...
...
This diff is collapsed.
Click to expand it.
examples/src/OpenDis7Examples/ExampleTrackInterpolationLog.txt
+
4
−
4
View file @
0ffb8a17
...
...
@@ -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\PduCaptureLog
176
.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\PduCaptureLog
176
.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)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment