diff --git a/examples/src/OpenDis7Examples/AllPduSender.java b/examples/src/OpenDis7Examples/AllPduSender.java index 1485b3cba82f3085af5467c3a7f36207834c93d1..12815bb62d5c7da782d02f986ca6ef0489269e04 100755 --- a/examples/src/OpenDis7Examples/AllPduSender.java +++ b/examples/src/OpenDis7Examples/AllPduSender.java @@ -413,6 +413,8 @@ public class AllPduSender { VariableDatum newVariableDatum = new VariableDatum(); newVariableDatum.setVariableDatumValue (comment.getBytes()); // conversion + // TODO confirm whether method overloading is appropriate +// newVariableDatum.setVariableDatumLength(comment.getBytes().length); newVariableDatum.setVariableDatumLengthInBytes(comment.getBytes().length); // also available in bits, see spec and javadoc // alternatively, you do not need to set this and the marshaller will figure it out from the byte array // (see javadoc for VariableDatum.setVariableDatumLength()) diff --git a/examples/src/OpenDis7Examples/AllPduSenderLog.txt b/examples/src/OpenDis7Examples/AllPduSenderLog.txt index 6e4a9f03b4f3b3ed61606c7cdd4a4329045121cb..6c837226506fb5bbc3712075314ae6005bd71b18 100644 --- a/examples/src/OpenDis7Examples/AllPduSenderLog.txt +++ b/examples/src/OpenDis7Examples/AllPduSenderLog.txt @@ -88,4 +88,4 @@ Sent packet #70, DisPduType 70 INFORMATION_OPERATIONS_ACTION (packet.getLen Sent packet #71, DisPduType 71 INFORMATION_OPERATIONS_REPORT (packet.getLength()= 40) of type edu.nps.moves.dis7.pdus.InformationOperationsReportPdu Sent packet #72, DisPduType 72 ATTRIBUTE (packet.getLength()= 32) of type edu.nps.moves.dis7.pdus.AttributePdu OpenDis7Examples.AllPduSender complete, sent 72 PDUs total. -BUILD SUCCESSFUL (total time: 4 seconds) +BUILD SUCCESSFUL (total time: 3 seconds)