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
8a71f2a4
Commit
8a71f2a4
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
commented out problematic code block, TODO follow PDU factory pattern instead.
parent
f1f50c3a
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
assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java
+3
-2
3 additions, 2 deletions
...rc/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java
with
3 additions
and
2 deletions
assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java
+
3
−
2
View file @
8a71f2a4
...
...
@@ -202,18 +202,19 @@ public class Homework2
// Where is my entity? Insert changes in position; this sample only changes X position.
entityStatePdu_1
.
getEntityLocation
().
setX
(
entityStatePdu_1
.
getEntityLocation
().
getX
()
+
1.0
);
// 1m per timestep
/* TODO. don't use this problematic code block, follow PDU factory pattern instead.
DataOutputStream data_input = new DataOutputStream();
data_input.writeChars("Entity on fire");
SetDataPdu entity_on_fire_pdu = new SetDataPdu();
List
<
VariableDatum
>
edata
=
new
ArrayList
<
VariableDatum
>();
List<VariableDatum> edata = new ArrayList<>();
VariableDatum datum = new VariableDatum();
datum.marshal(data_input);
edata.add(datum);
entity_on_fire_pdu.setVariableDatums(edata);
disChannel.sendSinglePdu(entity_on_fire_pdu);
data_input.close();
*/
// make your reports: narrative code for CommentPdu here (set all to empty strings to avoid sending)
narrativeMessage1
=
"MV3500 ExampleSimulationProgram"
;
narrativeMessage2
=
"runSimulation() loop "
+
simulationLoopCount
;
...
...
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