Skip to content
Snippets Groups Projects
Commit 8a71f2a4 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

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
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment