diff --git a/examples/src/OpenDis7Examples/AllPduSender.java b/examples/src/OpenDis7Examples/AllPduSender.java index 34f7c6cb426c8c91bb6b9ac6a998467ae8f06aeb..0fb8cd5899731949d0a9648ce3744e79bacf971d 100755 --- a/examples/src/OpenDis7Examples/AllPduSender.java +++ b/examples/src/OpenDis7Examples/AllPduSender.java @@ -43,7 +43,7 @@ public class AllPduSender public void run() { - System.out.println("DisExamplesOpenDis7.PduSender started..."); + System.out.println("DisExamplesOpenDis7.AllPduSender started..."); try { System.out.println("Generate PDUs and note issues, if any..."); @@ -70,7 +70,7 @@ public class AllPduSender EntityStatePdu espdu = (EntityStatePdu) aPdu; EntityMarking entityMarking = new EntityMarking (); - entityMarking.setCharacters("PduSender".getBytes()); //entityMarking.setCharacters(Byte.valueOf("0")); // 11 characters max? + entityMarking.setCharacters("AllPduSender".getBytes()); //entityMarking.setCharacters(Byte.valueOf("0")); // 11 characters max? espdu.setMarking(entityMarking); Vector3Double espduLocation = new Vector3Double(); @@ -416,7 +416,7 @@ public class AllPduSender } String currentPduTypeValuePadded = String.format("%2s", aPdu.getPduType().getValue()); String currentPduTypePadded = String.format("%-34s", aPdu.getPduType()); // - indicates right padding of whitespace - System.out.print ("Sent DISs PDU " + currentPduTypeValuePadded + " " + currentPduTypePadded ); + System.out.print ("Sent DIS PDU " + currentPduTypeValuePadded + " " + currentPduTypePadded ); System.out.println(" of type " + aPdu.getClass().getName()); } // write the PDUs out to an XML file. @@ -439,10 +439,11 @@ public class AllPduSender } else { - System.out.println("Usage: PduSender <port> <multicast group>"); - System.out.println("Default: PduSender " + DEFAULT_MULTICAST_PORT + " " + DEFAULT_MULTICAST_ADDRESS); + System.out.println("Usage: AllPduSender <port> <multicast group>"); + System.out.println("Default: AllPduSender " + DEFAULT_MULTICAST_PORT + " " + DEFAULT_MULTICAST_ADDRESS); AllPduSender sender = new AllPduSender(DEFAULT_MULTICAST_PORT, DEFAULT_MULTICAST_ADDRESS); sender.run(); } + System.out.println("DisExamplesOpenDis7.AllPduSender complete."); } } diff --git a/examples/src/OpenDis7Examples/AllPduSenderLog.txt b/examples/src/OpenDis7Examples/AllPduSenderLog.txt index 3ad5feee7eeb2d4a028f2be61c1afd342608abae..ecca4d4a42dc1f491cacf7eb8a56bf2a152f5be1 100644 --- a/examples/src/OpenDis7Examples/AllPduSenderLog.txt +++ b/examples/src/OpenDis7Examples/AllPduSenderLog.txt @@ -5,82 +5,83 @@ Program response: =================================================== -Usage: PduSender <port> <multicast group> -Default: PduSender 3000 239.1.2.3 -DisExamplesOpenDis7.PduSender started... -Generate PDUs and note issues, if any: +Usage: AllPduSender <port> <multicast group> +Default: AllPduSender 3000 239.1.2.3 +DisExamplesOpenDis7.AllPduSender started... +Generate PDUs and note issues, if any... *** Note: DISPDUType.OTHER not supported Send the 72 PDUs we created... -Sent PDU 1 ENTITY_STATE of type edu.nps.moves.dis7.EntityStatePdu -Sent PDU 2 FIRE of type edu.nps.moves.dis7.FirePdu -Sent PDU 3 DETONATION of type edu.nps.moves.dis7.DetonationPdu -Sent PDU 4 COLLISION of type edu.nps.moves.dis7.CollisionPdu -Sent PDU 5 SERVICE_REQUEST of type edu.nps.moves.dis7.ServiceRequestPdu -Sent PDU 6 RESUPPLY_OFFER of type edu.nps.moves.dis7.ResupplyOfferPdu -Sent PDU 7 RESUPPLY_RECEIVED of type edu.nps.moves.dis7.ResupplyReceivedPdu -Sent PDU 8 RESUPPLY_CANCEL of type edu.nps.moves.dis7.ResupplyCancelPdu -Sent PDU 9 REPAIR_COMPLETE of type edu.nps.moves.dis7.RepairCompletePdu -Sent PDU 10 REPAIR_RESPONSE of type edu.nps.moves.dis7.RepairResponsePdu -Sent PDU 11 CREATE_ENTITY of type edu.nps.moves.dis7.CreateEntityPdu -Sent PDU 12 REMOVE_ENTITY of type edu.nps.moves.dis7.RemoveEntityPdu -Sent PDU 13 START_RESUME of type edu.nps.moves.dis7.StartResumePdu -Sent PDU 14 STOP_FREEZE of type edu.nps.moves.dis7.StopFreezePdu -Sent PDU 15 ACKNOWLEDGE of type edu.nps.moves.dis7.AcknowledgePdu -Sent PDU 16 ACTION_REQUEST of type edu.nps.moves.dis7.ActionRequestPdu -Sent PDU 17 ACTION_RESPONSE of type edu.nps.moves.dis7.ActionResponsePdu -Sent PDU 18 DATA_QUERY of type edu.nps.moves.dis7.DataQueryPdu -Sent PDU 19 SET_DATA of type edu.nps.moves.dis7.SetDataPdu -Sent PDU 20 DATA of type edu.nps.moves.dis7.DataPdu -Sent PDU 21 EVENT_REPORT of type edu.nps.moves.dis7.EventReportPdu -Sent PDU 22 COMMENT of type edu.nps.moves.dis7.CommentPdu -Sent PDU 23 ELECTROMAGNETIC_EMISSION of type edu.nps.moves.dis7.ElectromagneticEmissionPdu -Sent PDU 24 DESIGNATOR of type edu.nps.moves.dis7.DesignatorPdu -Sent PDU 25 TRANSMITTER of type edu.nps.moves.dis7.TransmitterPdu -Sent PDU 26 SIGNAL of type edu.nps.moves.dis7.SignalPdu -Sent PDU 27 RECEIVER of type edu.nps.moves.dis7.ReceiverPdu -Sent PDU 28 IDENTIFICATION_FRIEND_OR_FOE of type edu.nps.moves.dis7.IdentificationFriendOrFoePdu -Sent PDU 29 UNDERWATER_ACOUSTIC of type edu.nps.moves.dis7.UnderwaterAcousticPdu -Sent PDU 30 SUPPLEMENTAL_EMISSION_ENTITY_STATE of type edu.nps.moves.dis7.SupplementalEmissionEntityStatePdu -Sent PDU 31 INTERCOM_SIGNAL of type edu.nps.moves.dis7.IntercomSignalPdu -Sent PDU 32 INTERCOM_CONTROL of type edu.nps.moves.dis7.IntercomControlPdu -Sent PDU 33 AGGREGATE_STATE of type edu.nps.moves.dis7.AggregateStatePdu -Sent PDU 34 ISGROUPOF of type edu.nps.moves.dis7.IsGroupOfPdu -Sent PDU 35 TRANSFER_OWNERSHIP of type edu.nps.moves.dis7.TransferOwnershipPdu -Sent PDU 36 ISPARTOF of type edu.nps.moves.dis7.IsPartOfPdu -Sent PDU 37 MINEFIELD_STATE of type edu.nps.moves.dis7.MinefieldStatePdu -Sent PDU 38 MINEFIELD_QUERY of type edu.nps.moves.dis7.MinefieldQueryPdu -Sent PDU 39 MINEFIELD_DATA of type edu.nps.moves.dis7.MinefieldDataPdu -Sent PDU 40 MINEFIELD_RESPONSE_NACK of type edu.nps.moves.dis7.MinefieldResponseNACKPdu -Sent PDU 41 ENVIRONMENTAL_PROCESS of type edu.nps.moves.dis7.EnvironmentalProcessPdu -Sent PDU 42 GRIDDED_DATA of type edu.nps.moves.dis7.GriddedDataPdu -Sent PDU 43 POINT_OBJECT_STATE of type edu.nps.moves.dis7.PointObjectStatePdu -Sent PDU 44 LINEAR_OBJECT_STATE of type edu.nps.moves.dis7.LinearObjectStatePdu -Sent PDU 45 AREAL_OBJECT_STATE of type edu.nps.moves.dis7.ArealObjectStatePdu -Sent PDU 46 TIME_SPACE_POSITION_INFORMATION of type edu.nps.moves.dis7.TimeSpacePositionInformationPdu -Sent PDU 47 APPEARANCE of type edu.nps.moves.dis7.AppearancePdu -Sent PDU 48 ARTICULATED_PARTS of type edu.nps.moves.dis7.ArticulatedPartsPdu -Sent PDU 49 LIVE_ENTITY_FIRE of type edu.nps.moves.dis7.LiveEntityFirePdu -Sent PDU 50 LIVE_ENTITY_DETONATION of type edu.nps.moves.dis7.LiveEntityDetonationPdu -Sent PDU 51 CREATE_ENTITY_RELIABLE of type edu.nps.moves.dis7.CreateEntityReliablePdu -Sent PDU 52 REMOVE_ENTITY_RELIABLE of type edu.nps.moves.dis7.RemoveEntityReliablePdu -Sent PDU 53 START_RESUME_RELIABLE of type edu.nps.moves.dis7.StartResumeReliablePdu -Sent PDU 54 STOP_FREEZE_RELIABLE of type edu.nps.moves.dis7.StopFreezeReliablePdu -Sent PDU 55 ACKNOWLEDGE_RELIABLE of type edu.nps.moves.dis7.AcknowledgeReliablePdu -Sent PDU 56 ACTION_REQUEST_RELIABLE of type edu.nps.moves.dis7.ActionRequestReliablePdu -Sent PDU 57 ACTION_RESPONSE_RELIABLE of type edu.nps.moves.dis7.ActionResponseReliablePdu -Sent PDU 58 DATA_QUERY_RELIABLE of type edu.nps.moves.dis7.DataQueryReliablePdu -Sent PDU 59 SET_DATA_RELIABLE of type edu.nps.moves.dis7.SetDataReliablePdu -Sent PDU 60 DATA_RELIABLE of type edu.nps.moves.dis7.DataReliablePdu -Sent PDU 61 EVENT_REPORT_RELIABLE of type edu.nps.moves.dis7.EventReportReliablePdu -Sent PDU 62 COMMENT_RELIABLE of type edu.nps.moves.dis7.CommentReliablePdu -Sent PDU 63 RECORD_RELIABLE of type edu.nps.moves.dis7.RecordReliablePdu -Sent PDU 64 SET_RECORD_RELIABLE of type edu.nps.moves.dis7.SetRecordReliablePdu -Sent PDU 65 RECORD_QUERY_RELIABLE of type edu.nps.moves.dis7.RecordQueryReliablePdu -Sent PDU 66 COLLISION_ELASTIC of type edu.nps.moves.dis7.CollisionElasticPdu -Sent PDU 67 ENTITY_STATE_UPDATE of type edu.nps.moves.dis7.EntityStateUpdatePdu -Sent PDU 68 DIRECTED_ENERGY_FIRE of type edu.nps.moves.dis7.DirectedEnergyFirePdu -Sent PDU 69 ENTITY_DAMAGE_STATUS of type edu.nps.moves.dis7.EntityDamageStatusPdu -Sent PDU 70 INFORMATION_OPERATIONS_ACTION of type edu.nps.moves.dis7.InformationOperationsActionPdu -Sent PDU 71 INFORMATION_OPERATIONS_REPORT of type edu.nps.moves.dis7.InformationOperationsReportPdu -Sent PDU 72 ATTRIBUTE of type edu.nps.moves.dis7.AttributePdu +Sent DIS PDU 1 ENTITY_STATE of type edu.nps.moves.dis7.EntityStatePdu +Sent DIS PDU 2 FIRE of type edu.nps.moves.dis7.FirePdu +Sent DIS PDU 3 DETONATION of type edu.nps.moves.dis7.DetonationPdu +Sent DIS PDU 4 COLLISION of type edu.nps.moves.dis7.CollisionPdu +Sent DIS PDU 5 SERVICE_REQUEST of type edu.nps.moves.dis7.ServiceRequestPdu +Sent DIS PDU 6 RESUPPLY_OFFER of type edu.nps.moves.dis7.ResupplyOfferPdu +Sent DIS PDU 7 RESUPPLY_RECEIVED of type edu.nps.moves.dis7.ResupplyReceivedPdu +Sent DIS PDU 8 RESUPPLY_CANCEL of type edu.nps.moves.dis7.ResupplyCancelPdu +Sent DIS PDU 9 REPAIR_COMPLETE of type edu.nps.moves.dis7.RepairCompletePdu +Sent DIS PDU 10 REPAIR_RESPONSE of type edu.nps.moves.dis7.RepairResponsePdu +Sent DIS PDU 11 CREATE_ENTITY of type edu.nps.moves.dis7.CreateEntityPdu +Sent DIS PDU 12 REMOVE_ENTITY of type edu.nps.moves.dis7.RemoveEntityPdu +Sent DIS PDU 13 START_RESUME of type edu.nps.moves.dis7.StartResumePdu +Sent DIS PDU 14 STOP_FREEZE of type edu.nps.moves.dis7.StopFreezePdu +Sent DIS PDU 15 ACKNOWLEDGE of type edu.nps.moves.dis7.AcknowledgePdu +Sent DIS PDU 16 ACTION_REQUEST of type edu.nps.moves.dis7.ActionRequestPdu +Sent DIS PDU 17 ACTION_RESPONSE of type edu.nps.moves.dis7.ActionResponsePdu +Sent DIS PDU 18 DATA_QUERY of type edu.nps.moves.dis7.DataQueryPdu +Sent DIS PDU 19 SET_DATA of type edu.nps.moves.dis7.SetDataPdu +Sent DIS PDU 20 DATA of type edu.nps.moves.dis7.DataPdu +Sent DIS PDU 21 EVENT_REPORT of type edu.nps.moves.dis7.EventReportPdu +Sent DIS PDU 22 COMMENT of type edu.nps.moves.dis7.CommentPdu +Sent DIS PDU 23 ELECTROMAGNETIC_EMISSION of type edu.nps.moves.dis7.ElectromagneticEmissionPdu +Sent DIS PDU 24 DESIGNATOR of type edu.nps.moves.dis7.DesignatorPdu +Sent DIS PDU 25 TRANSMITTER of type edu.nps.moves.dis7.TransmitterPdu +Sent DIS PDU 26 SIGNAL of type edu.nps.moves.dis7.SignalPdu +Sent DIS PDU 27 RECEIVER of type edu.nps.moves.dis7.ReceiverPdu +Sent DIS PDU 28 IDENTIFICATION_FRIEND_OR_FOE of type edu.nps.moves.dis7.IdentificationFriendOrFoePdu +Sent DIS PDU 29 UNDERWATER_ACOUSTIC of type edu.nps.moves.dis7.UnderwaterAcousticPdu +Sent DIS PDU 30 SUPPLEMENTAL_EMISSION_ENTITY_STATE of type edu.nps.moves.dis7.SupplementalEmissionEntityStatePdu +Sent DIS PDU 31 INTERCOM_SIGNAL of type edu.nps.moves.dis7.IntercomSignalPdu +Sent DIS PDU 32 INTERCOM_CONTROL of type edu.nps.moves.dis7.IntercomControlPdu +Sent DIS PDU 33 AGGREGATE_STATE of type edu.nps.moves.dis7.AggregateStatePdu +Sent DIS PDU 34 ISGROUPOF of type edu.nps.moves.dis7.IsGroupOfPdu +Sent DIS PDU 35 TRANSFER_OWNERSHIP of type edu.nps.moves.dis7.TransferOwnershipPdu +Sent DIS PDU 36 ISPARTOF of type edu.nps.moves.dis7.IsPartOfPdu +Sent DIS PDU 37 MINEFIELD_STATE of type edu.nps.moves.dis7.MinefieldStatePdu +Sent DIS PDU 38 MINEFIELD_QUERY of type edu.nps.moves.dis7.MinefieldQueryPdu +Sent DIS PDU 39 MINEFIELD_DATA of type edu.nps.moves.dis7.MinefieldDataPdu +Sent DIS PDU 40 MINEFIELD_RESPONSE_NACK of type edu.nps.moves.dis7.MinefieldResponseNACKPdu +Sent DIS PDU 41 ENVIRONMENTAL_PROCESS of type edu.nps.moves.dis7.EnvironmentalProcessPdu +Sent DIS PDU 42 GRIDDED_DATA of type edu.nps.moves.dis7.GriddedDataPdu +Sent DIS PDU 43 POINT_OBJECT_STATE of type edu.nps.moves.dis7.PointObjectStatePdu +Sent DIS PDU 44 LINEAR_OBJECT_STATE of type edu.nps.moves.dis7.LinearObjectStatePdu +Sent DIS PDU 45 AREAL_OBJECT_STATE of type edu.nps.moves.dis7.ArealObjectStatePdu +Sent DIS PDU 46 TIME_SPACE_POSITION_INFORMATION of type edu.nps.moves.dis7.TimeSpacePositionInformationPdu +Sent DIS PDU 47 APPEARANCE of type edu.nps.moves.dis7.AppearancePdu +Sent DIS PDU 48 ARTICULATED_PARTS of type edu.nps.moves.dis7.ArticulatedPartsPdu +Sent DIS PDU 49 LIVE_ENTITY_FIRE of type edu.nps.moves.dis7.LiveEntityFirePdu +Sent DIS PDU 50 LIVE_ENTITY_DETONATION of type edu.nps.moves.dis7.LiveEntityDetonationPdu +Sent DIS PDU 51 CREATE_ENTITY_RELIABLE of type edu.nps.moves.dis7.CreateEntityReliablePdu +Sent DIS PDU 52 REMOVE_ENTITY_RELIABLE of type edu.nps.moves.dis7.RemoveEntityReliablePdu +Sent DIS PDU 53 START_RESUME_RELIABLE of type edu.nps.moves.dis7.StartResumeReliablePdu +Sent DIS PDU 54 STOP_FREEZE_RELIABLE of type edu.nps.moves.dis7.StopFreezeReliablePdu +Sent DIS PDU 55 ACKNOWLEDGE_RELIABLE of type edu.nps.moves.dis7.AcknowledgeReliablePdu +Sent DIS PDU 56 ACTION_REQUEST_RELIABLE of type edu.nps.moves.dis7.ActionRequestReliablePdu +Sent DIS PDU 57 ACTION_RESPONSE_RELIABLE of type edu.nps.moves.dis7.ActionResponseReliablePdu +Sent DIS PDU 58 DATA_QUERY_RELIABLE of type edu.nps.moves.dis7.DataQueryReliablePdu +Sent DIS PDU 59 SET_DATA_RELIABLE of type edu.nps.moves.dis7.SetDataReliablePdu +Sent DIS PDU 60 DATA_RELIABLE of type edu.nps.moves.dis7.DataReliablePdu +Sent DIS PDU 61 EVENT_REPORT_RELIABLE of type edu.nps.moves.dis7.EventReportReliablePdu +Sent DIS PDU 62 COMMENT_RELIABLE of type edu.nps.moves.dis7.CommentReliablePdu +Sent DIS PDU 63 RECORD_RELIABLE of type edu.nps.moves.dis7.RecordReliablePdu +Sent DIS PDU 64 SET_RECORD_RELIABLE of type edu.nps.moves.dis7.SetRecordReliablePdu +Sent DIS PDU 65 RECORD_QUERY_RELIABLE of type edu.nps.moves.dis7.RecordQueryReliablePdu +Sent DIS PDU 66 COLLISION_ELASTIC of type edu.nps.moves.dis7.CollisionElasticPdu +Sent DIS PDU 67 ENTITY_STATE_UPDATE of type edu.nps.moves.dis7.EntityStateUpdatePdu +Sent DIS PDU 68 DIRECTED_ENERGY_FIRE of type edu.nps.moves.dis7.DirectedEnergyFirePdu +Sent DIS PDU 69 ENTITY_DAMAGE_STATUS of type edu.nps.moves.dis7.EntityDamageStatusPdu +Sent DIS PDU 70 INFORMATION_OPERATIONS_ACTION of type edu.nps.moves.dis7.InformationOperationsActionPdu +Sent DIS PDU 71 INFORMATION_OPERATIONS_REPORT of type edu.nps.moves.dis7.InformationOperationsReportPdu +Sent DIS PDU 72 ATTRIBUTE of type edu.nps.moves.dis7.AttributePdu +DisExamplesOpenDis7.AllPduSender complete. BUILD SUCCESSFUL (total time: 8 seconds)