There was a small confusion in the class reagrding , what happens when a Harbor has more than one input docks.
Here is what I observed,
#When a harbor has more than one input dock, Fluency waits till the "Ships" dont arrive at all the docks. In other words, Fluency fires the harbor only when all the ships arrive at their respective docks.There may be a case that no ships arrive at dock 1 and 2 ships have already reached dock 2. Harbor is fired as soon as a Ship reaches dock 1.
#Fluency maintains a queue near the docks. So in the above case if 3 ships arrive at dock 2, then the ships at dock 2 are served at first come first serve basis.
#We can also say that the ships are cached and there may be cases when a recent version of ship from dock 1 and a older version of ship from dock 2 , are passed as an input to the harbor.
All these work are done by the Harbor class.
Here is what I observed,
#When a harbor has more than one input dock, Fluency waits till the "Ships" dont arrive at all the docks. In other words, Fluency fires the harbor only when all the ships arrive at their respective docks.There may be a case that no ships arrive at dock 1 and 2 ships have already reached dock 2. Harbor is fired as soon as a Ship reaches dock 1.
#Fluency maintains a queue near the docks. So in the above case if 3 ships arrive at dock 2, then the ships at dock 2 are served at first come first serve basis.
#We can also say that the ships are cached and there may be cases when a recent version of ship from dock 1 and a older version of ship from dock 2 , are passed as an input to the harbor.
All these work are done by the Harbor class.