@@ -106,10 +107,10 @@ public class ExampleSimulationProgram
...
@@ -106,10 +107,10 @@ public class ExampleSimulationProgram
}
}
/**
/**
* Send a PDU of any type
* Send a single Protocol Data Unit (PDU) of any type
* @param pdu the pdu to send
* @param pdu the pdu to send
*/
*/
privatevoidsendPdu(Pdupdu)
privatevoidsendSinglePdu(Pdupdu)
{
{
try
try
{
{
...
@@ -124,51 +125,78 @@ public class ExampleSimulationProgram
...
@@ -124,51 +125,78 @@ public class ExampleSimulationProgram
}
}
/**
/**
* PDU sending: EntityState, Fire, Comment
* Send EntityState, Fire, Comment PDUs
* @see <a href="https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html">Passing Information to a Method or a Constructor</a> Arbitrary Number of Arguments
* @see <a href="https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html">Passing Information to a Method or a Constructor</a> Arbitrary Number of Arguments
* @param entityStatePdu the ESPDU to send, if any
* @param entityStatePdu the ESPDU to send, if any
* @param firePdu the FirePDU to send, if any
* @param firePdu the FirePDU to send, if any
* @param commentType enumeration value describing the narrative comment
* @param commentType enumeration value describing the narrative comment
* @param comments String array of narrative comments
* @param comments String array of narrative comments
* Main method is first executed when a program instance is loaded.
* @see <a href="https://docs.oracle.com/javase/tutorial/getStarted/application/index.html">Java Tutorials: A Closer Look at the "Hello World!" Application</a>
* @param args command-line arguments are an array of optional String parameters that are passed from execution environment during invocation