Package edu.nps.moves.dis7.examples
Class AllPduSender
java.lang.Object
edu.nps.moves.dis7.examples.AllPduSender
This is an application example that sends every type of PDU defined
by the IEEE Distributed Interactive Simulation (DIS) Protocol.
This example program is useful for testing standards compliance by applications, or
producing a full set of PDUs. It also writes the generated PDUs to an XML file.
Adapted from OpenDIS library example package edu.nps.moves.examples
- Author:
- brutzman, DMcG
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault multicast group address we send on.static final intDefault multicast port used, matches Wireshark DIS capture default -
Constructor Summary
ConstructorsConstructorDescriptionAllPduSender(String newMulticastAddress, int newMulticastPort) Object constructor -
Method Summary
-
Field Details
-
DEFAULT_MULTICAST_ADDRESS
Default multicast group address we send on.- See Also:
-
DEFAULT_MULTICAST_PORT
public static final int DEFAULT_MULTICAST_PORTDefault multicast port used, matches Wireshark DIS capture default- See Also:
-
-
Constructor Details
-
AllPduSender
Object constructor- Parameters:
newMulticastAddress- address of interestnewMulticastPort- port of interest
-
-
Method Details
-
run
public int run()Begin operations- Returns:
- number of PDUs received, -1 if exception occurs
-
main
Program invocation, execution starts here- Parameters:
args- command-line arguments
-