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
3c51391e
Commit
3c51391e
authored
4 years ago
by
brutzman
Browse files
Options
Downloads
Patches
Plain Diff
silence warning, use explicit class
parent
4013349e
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/AllPduSender.java
+2
-3
2 additions, 3 deletions
examples/src/OpenDis7Examples/AllPduSender.java
with
2 additions
and
3 deletions
examples/src/OpenDis7Examples/AllPduSender.java
+
2
−
3
View file @
3c51391e
...
@@ -369,9 +369,9 @@ public class AllPduSender
...
@@ -369,9 +369,9 @@ public class AllPduSender
// https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments/src/MV3500Cohort2018JulySeptember/projects/LoeffelmanSeverson
// https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/tree/master/assignments/src/MV3500Cohort2018JulySeptember/projects/LoeffelmanSeverson
CommentPdu
newCommentPdu
=
new
CommentPdu
();
CommentPdu
newCommentPdu
=
new
CommentPdu
();
List
<
VariableDatum
>
payloadList
=
new
ArrayList
<>();
Array
List
<
VariableDatum
>
payloadList
=
new
ArrayList
<>();
List
<
String
>
commentsList
=
new
ArrayList
<>();
Array
List
<
String
>
commentsList
=
new
ArrayList
<>();
commentsList
.
add
(
"Hello CommentPDU"
);
commentsList
.
add
(
"Hello CommentPDU"
);
commentsList
.
add
(
"Here is a second line of text in this comment."
);
commentsList
.
add
(
"Here is a second line of text in this comment."
);
...
@@ -381,7 +381,6 @@ public class AllPduSender
...
@@ -381,7 +381,6 @@ public class AllPduSender
for
(
String
comment
:
commentsList
)
for
(
String
comment
:
commentsList
)
{
{
VariableDatum
newVariableDatum
=
new
VariableDatum
();
VariableDatum
newVariableDatum
=
new
VariableDatum
();
newVariableDatum
.
setVariableDatumValue
(
comment
.
getBytes
());
// conversion
newVariableDatum
.
setVariableDatumValue
(
comment
.
getBytes
());
// conversion
newVariableDatum
.
setVariableDatumLengthInBytes
(
comment
.
getBytes
().
length
);
// also available in bits, see spec and javadoc
newVariableDatum
.
setVariableDatumLengthInBytes
(
comment
.
getBytes
().
length
);
// also available in bits, see spec and javadoc
// alternatively, you do not need to set this and the marshaller will figure it out from the byte array
// alternatively, you do not need to set this and the marshaller will figure it out from the byte array
...
...
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