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
c463af89
Commit
c463af89
authored
7 months ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
entity 3, a potential third-party observer
parent
9dbfdd3c
No related branches found
Branches containing commit
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/ExampleSimulationProgram.java
+5
-2
5 additions, 2 deletions
examples/src/OpenDis7Examples/ExampleSimulationProgram.java
with
5 additions
and
2 deletions
examples/src/OpenDis7Examples/ExampleSimulationProgram.java
+
5
−
2
View file @
c463af89
...
...
@@ -53,6 +53,9 @@ public class ExampleSimulationProgram
protected
EntityID
entityID_1
=
new
EntityID
();
/** EntityID settings for entity 2 */
protected
EntityID
entityID_2
=
new
EntityID
();
/** EntityID settings for entity 3, a potential third-party observer and after-action reporter */
protected
EntityID
entityID_3
=
new
EntityID
();
/** ESPDU for entity 1 */
protected
EntityStatePdu
entityStatePdu_1
;
/** ESPDU for entity 2 */
...
...
@@ -161,9 +164,9 @@ public class ExampleSimulationProgram
munitionDescriptor1
=
new
MunitionDescriptor
();
// can a third party report their independent (non-entity) status of a detonation? yes...
// if this is a third-party report, then that third party will need an independent EntityID
detonationPdu_1a
=
pduFactory
.
makeDetonationPdu
();
// if this is a third-party report, then that third party will need an EntityID
detonationPdu_1a
.
setSourceEntityID
(
entityID_1
);
detonationPdu_1a
.
setSourceEntityID
(
entityID_3
);
// Your model setup: define participants. who's who in this zoo?
// Assuming you keep track of entity objects... here is some support for for Entity 1.
...
...
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