Skip to content
Snippets Groups Projects
Commit 4996cf3c authored by Brutzman, Don's avatar Brutzman, Don
Browse files

renames for correctness/clarity

parent 62e4bf45
No related branches found
No related tags found
No related merge requests found
...@@ -69,14 +69,18 @@ public class TwoCraneBerthsOpenDis7 extends SimEntityBase ...@@ -69,14 +69,18 @@ public class TwoCraneBerthsOpenDis7 extends SimEntityBase
super.reset(); super.reset();
queue.clear(); queue.clear();
berth.clear(); berth.clear();
timeInSystem = Double.NaN; timeInSystem = Double.NaN; // Not a Number
delayInQueue = Double.NaN; delayInQueue = Double.NaN; // Not a Number
} }
/** /**
* Only PropertyChangeEvents * Only PropertyChangeEvents
*/ */
public void doRun() { public void doRun() {
disChannel.setVerboseComments(true);
disChannel.setVerboseComments(true);
// TODO what is happening? not seen in logs...
firePropertyChange("queue", getQueue()); firePropertyChange("queue", getQueue());
firePropertyChange("berth", getBerth()); firePropertyChange("berth", getBerth());
firePropertyChange("timeInSystem", getTimeInSystem()); firePropertyChange("timeInSystem", getTimeInSystem());
...@@ -291,7 +295,8 @@ public class TwoCraneBerthsOpenDis7 extends SimEntityBase ...@@ -291,7 +295,8 @@ public class TwoCraneBerthsOpenDis7 extends SimEntityBase
disTimeStamp += craneRotationDelay; disTimeStamp += craneRotationDelay;
espduCrane.setEntityOrientation(orientationToPier); espduCrane.setEntityOrientation(orientationToPier);
disChannel.sendSinglePdu(disTimeStamp, espduCrane); 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 // 4.d crane unhooks container
disTimeStamp += containerDetachDuration; disTimeStamp += containerDetachDuration;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment