* @param commentType enumeration value describing purpose of the narrative comment PDU
System.out.println("... [final=completion CommentPdu successfully sent for simulation]");
* @param comments String array of narrative comments
* @see DisChannel
// disChannel.getPduRecorder(). TODO record XML as well
// * @see DisTime // TODO find renamed version
disChannel.leave();// embedded SimulationManager is expected to send appropriate PDUs for entity, application shutdown
* @see <a href="https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html" target="_blank">Passing Information to a Method or a Constructor</a> Arbitrary Number of Arguments
}
*/
catch(InterruptedExceptioniex)// handle any exception that your code might choose to provoke!
* @param commentType enumeration value describing purpose of the narrative comment PDU
disChannel.sendSinglePdu(simTimeSeconds,firePdu);// bang
* @param comments String array of narrative comments
* @see DisChannel
disChannel.sendCommentPdu(simTimeSeconds,commentType,comments);// empty comments are filtered
// * @see DisTime // TODO find renamed version
}
* @see <a href="https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html" target="_blank">Passing Information to a Method or a Constructor</a> Arbitrary Number of Arguments
* @return the simulationTimeStepDuration in seconds
/**
*/
* Main method is first executed when a program instance is loaded.
publicdoublegetSimulationTimeStepDuration(){
* @see <a href="https://docs.oracle.com/javase/tutorial/getStarted/application/index.html" target="_blank">Java Tutorials: A Closer Look at the "Hello World!" Application</a>
returnsimulationTimeStepDuration;
* @param args command-line parameters: network address and port.
}
* Command-line arguments are an array of optional String parameters that are passed from execution environment during invocation
*/
/**
publicstaticvoidmain(String[]args)
* parameter accessor method
{
* @param timeStepDurationSeconds the simulationTimeStepDuration in seconds to set
thisProgram=newExampleSimulationProgram("test constructor");// create instance of self within static main() method
* @see <a href="https://docs.oracle.com/javase/tutorial/getStarted/application/index.html" target="_blank">Java Tutorials: A Closer Look at the "Hello World!" Application</a>
* @param args command-line parameters: network address and port.
System.exit(0);// ensure all threads and sockets released
* Command-line arguments are an array of optional String parameters that are passed from execution environment during invocation
}
*/
}
publicstaticvoidmain(String[]args)
{
thisProgram=newExampleSimulationProgram("test constructor");// create instance of self within static main() method