diff --git a/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/PDUReciever.java b/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/PDUReciever.java index e209c43ff590ecd4dd8fdfad425a28226a1fbaeb..8266723a66b41f7dec17617f6de8bb04d248c6b9 100755 --- a/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/PDUReciever.java +++ b/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/PDUReciever.java @@ -65,7 +65,7 @@ public class PDUReciever { socket1.receive(packet); - + List<Pdu> pduBundle = pduFactory.getPdusFromBundle(packet.getData(), packet.getLength()); if (pduBundle.size() > 1) { // should be 1 for this project diff --git a/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/WhiteSimulation.java b/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/WhiteSimulation.java index 9a639fc90e2ed0f683df7264fb64a1643a95eb3b..0f4acd37f84c9e35a933d073836fcba70e1dd17a 100644 --- a/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/WhiteSimulation.java +++ b/assignments/src/MV3500Cohort2020JulySeptember/homework4/White/working/WhiteSimulation.java @@ -329,7 +329,7 @@ public class WhiteSimulation firePdu.setMunitionExpendibleID(HEID); // - + CommentReliablePdu bmpDestroyedComment = pduFactory.makeCommentReliablePdu("BMP2 DESTROYED BY LAV25-A2 AFTER TWO BURSTS OF 25mm HEI-T ON TARGET"); CommentReliablePdu bmpSightedComment = pduFactory.makeCommentReliablePdu("LAV25-A2 ACQUIRES TARGET BMP2 WITHIN FIRING DISTANCE"); @@ -337,16 +337,11 @@ public class WhiteSimulation ResupplyOfferPdu resupplyOfferPdu = pduFactory.makeResupplyOfferPdu(); - ArrayList<SupplyQuantity> pSupplies = new ArrayList<SupplyQuantity>(); - SupplyQuantity ammoSupplyQ = new SupplyQuantity(); - ammoSupplyQ.setSupplyType(HEType); - ammoSupplyQ.setQuantity(500); - - //EntityType ammoSupply = new EntityType(); - // ammoSupply.setEntityKind(EntityKind.MUNITION); - //ammoSupply.setDomain(Entity) - //ammoSupplyQ.setSupplyType(EntityType.) - pSupplies.add(ammoSupplyQ); + ArrayList<SupplyQuantity> pSupplies = new ArrayList<SupplyQuantity>(); + SupplyQuantity ammoSupplyQ = new SupplyQuantity(); + ammoSupplyQ.setSupplyType(HEType); + ammoSupplyQ.setQuantity(500); + pSupplies.add(ammoSupplyQ); resupplyOfferPdu.setSupplies(pSupplies); resupplyOfferPdu.setReceivingEntityID(lavID); resupplyOfferPdu.setSupplyingEntityID(bmpID);