* @param disTimeStamp timestamp for this PDU, milliseconds since epoch
* @param commentType enumeration value describing purpose of the narrative comment
* @param comments String array of narrative comments
* @return constructed CommentPdu if sent, null otherwise
* @see VariableRecordType for other potential CommentPdu type enumerations.
* @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
*/
publicvoidsendCommentPdu(intdisTimeStamp,
publicCommentPdusendCommentPdu(intdisTimeStamp,
VariableRecordTypecommentType,
// vararg... variable-length set of String comments can optionally follow
* Send Comment PDU using given DIS time in seconds
* @param timeSeconds timestamp for this PDU, seconds since epoch
* @param commentType enumeration value describing purpose of the narrative comment
* @param comments String array of narrative comments
* @return constructed CommentPdu if sent, null otherwise
* @see VariableRecordType for other potential CommentPdu type enumerations.
* @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
*/
publicCommentPdusendCommentPdu(doubletimeSeconds,
VariableRecordTypecommentType,
// vararg... variable-length set of String comments can optionally follow
String...comments)
{
inttimeMilliseconds=(int)(timeSeconds*1000.0);
returnsendCommentPdu(timeMilliseconds,
commentType,
comments);
}
/**
* Send Comment PDU using current DIS timestamp
* @param commentType enumeration value describing purpose of the narrative comment
* @param comments String array of narrative comments
* @return constructed CommentPdu if sent, null otherwise
* @see VariableRecordType for other potential CommentPdu type enumerations.
* @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