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
af80c0a8
Commit
af80c0a8
authored
2 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
fix warnings
parent
ddcc8951
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/src/OpenDis7Examples/ExampleTrackInterpolation.java
+4
-3
4 additions, 3 deletions
examples/src/OpenDis7Examples/ExampleTrackInterpolation.java
with
4 additions
and
3 deletions
examples/src/OpenDis7Examples/ExampleTrackInterpolation.java
+
4
−
3
View file @
af80c0a8
...
...
@@ -11,6 +11,7 @@ import edu.nps.moves.dis7.enumerations.ForceID;
import
edu.nps.moves.dis7.pdus.EntityStatePdu
;
import
edu.nps.moves.dis7.pdus.Pdu
;
import
edu.nps.moves.dis7.pdus.Vector3Double
;
import
edu.nps.moves.dis7.utilities.DisChannel
;
import
edu.nps.moves.dis7.utilities.DisTime
;
import
edu.nps.moves.dis7.utilities.stream.X3dCreateInterpolators
;
import
edu.nps.moves.dis7.utilities.stream.X3dCreateLineSet
;
...
...
@@ -163,7 +164,7 @@ public class ExampleTrackInterpolation extends ExampleSimulationProgram
if
(
disChannel
.
getPduRecorder
().
hasVerboseOutput
())
System
.
out
.
println
(
"sending PDUs for simulation step "
+
simulationLoopCount
+
", monitor loopback to confirm sent"
);
disChannel
.
sendSinglePdu
(
espdu_1
);
disChannel
.
sendCommentPdu
(
d
isChannel
.
COMMENTPDU_SIMULATION_TIMESTEP
,
narrativeMessage1
,
narrativeMessage2
,
narrativeMessage3
);
disChannel
.
sendCommentPdu
(
D
isChannel
.
COMMENTPDU_SIMULATION_TIMESTEP
,
narrativeMessage1
,
narrativeMessage2
,
narrativeMessage3
);
if
(
disChannel
.
getPduRecorder
().
hasVerboseOutput
())
System
.
out
.
println
(
disChannel
.
getTRACE_PREFIX
()
+
"PDUs successfully sent for this loop"
);
pduSentList
.
add
(
espdu_1
);
...
...
@@ -195,7 +196,7 @@ public class ExampleTrackInterpolation extends ExampleSimulationProgram
System
.
out
.
println
(
"================================="
);
narrativeMessage2
=
"runSimulation() completed successfully"
;
// all done
disChannel
.
sendCommentPdu
(
d
isChannel
.
COMMENTPDU_NARRATIVE
,
narrativeMessage1
,
narrativeMessage2
,
narrativeMessage3
);
disChannel
.
sendCommentPdu
(
D
isChannel
.
COMMENTPDU_NARRATIVE
,
narrativeMessage1
,
narrativeMessage2
,
narrativeMessage3
);
if
(
disChannel
.
getPduRecorder
().
hasVerboseOutput
())
disChannel
.
printlnTRACE
(
"final CommentPdu successfully sent for simulation"
);
// TODO simulation management PDUs
...
...
@@ -241,7 +242,7 @@ public class ExampleTrackInterpolation extends ExampleSimulationProgram
thisProgram
.
disChannel
.
printlnTRACE
(
"main() started..."
);
thisProgram
.
handleArgs
(
args
);
// process command-line invocation arguments
thisProgram
.
handleArg
ument
s
(
args
);
// process command-line invocation arguments
// thisProgram.disChannel.getPduRecorder().setVerbose(false);
// thisProgram.disChannel.setVerboseComments(false);
...
...
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