* Send Comment PDU using given DIS time in seconds, after setting the PDU with given timestamp in seconds
* @param disTimeStamp timestamp for this PDU, milliseconds since epoch
* @param timestampSeconds timestamp to set for this PDU, seconds since epoch
* @param commentType enumeration value describing purpose of the narrative comment
* @param commentType enumeration value describing purpose of the narrative comment
* @param comments String array of narrative comments
* @param comments String array of narrative comments
* @return constructed CommentPdu if sent, null otherwise
* @return constructed CommentPdu if sent, null otherwise
* @see VariableRecordType for other potential CommentPdu type enumerations.
* @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
* @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
* 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
* Send Comment PDU using current DIS timestamp
* @param commentType enumeration value describing purpose of the narrative comment
* @param commentType enumeration value describing purpose of the narrative comment
...
@@ -435,25 +393,9 @@ public class DisChannel
...
@@ -435,25 +393,9 @@ public class DisChannel
}
}
},delayTimeMilliseconds);
},delayTimeMilliseconds);
}
}
/**
* Send Comment PDU following time delay
* @param commentType enumeration value describing purpose of the narrative comment
* @param delayTimeSeconds delay before sending
* @param comments String array of narrative comments
* @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