diff --git a/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java b/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java index 24e5d23e3422c37475595fbb5d433eb41286a58a..ae85bff070b50d66b8b6ab4e84ee1471063faf87 100644 --- a/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java +++ b/assignments/src/MV3500Cohort2022MayJune/homework2/Royer/Homework2.java @@ -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;