diff --git a/examples/src/SimkitOpenDis7Examples/TwoCraneBerthsOpenDis7.java b/examples/src/SimkitOpenDis7Examples/TwoCraneBerthsOpenDis7.java index e02d6d47fbe524febc7acfea546ee47a4f4a237d..7314d3e7f5ad735a30fc0a427801a5c520de46d6 100644 --- a/examples/src/SimkitOpenDis7Examples/TwoCraneBerthsOpenDis7.java +++ b/examples/src/SimkitOpenDis7Examples/TwoCraneBerthsOpenDis7.java @@ -69,14 +69,18 @@ public class TwoCraneBerthsOpenDis7 extends SimEntityBase super.reset(); queue.clear(); berth.clear(); - timeInSystem = Double.NaN; - delayInQueue = Double.NaN; + timeInSystem = Double.NaN; // Not a Number + delayInQueue = Double.NaN; // Not a Number } /** * Only PropertyChangeEvents */ public void doRun() { + disChannel.setVerboseComments(true); + disChannel.setVerboseComments(true); + // TODO what is happening? not seen in logs... + firePropertyChange("queue", getQueue()); firePropertyChange("berth", getBerth()); firePropertyChange("timeInSystem", getTimeInSystem()); @@ -291,7 +295,8 @@ public class TwoCraneBerthsOpenDis7 extends SimEntityBase disTimeStamp += craneRotationDelay; espduCrane.setEntityOrientation(orientationToPier); disChannel.sendSinglePdu(disTimeStamp, espduCrane); - disChannel.sendCommentPdu(disTimeStamp, VariableRecordType.CARGO, "Crane oriented to pier after " + craneRotationDelay + " seconds"); + disChannel.sendCommentPdu(disTimeStamp, VariableRecordType.CARGO, "Crane oriented to pier after " + craneRotationDelay + " seconds" + + " (" + craneRotationRate + " degrees/second)"); // 4.d crane unhooks container disTimeStamp += containerDetachDuration;