* - after executing these remaining instructions, the dock's hatch is open
*/
public class Context {
-
+ private HashMap<Dock,LoopFactory> startupLoopFactories = new HashMap<Dock,LoopFactory>();
private HashSet<LoopFactory> loopFactories = new HashSet<LoopFactory>();
public final Fleet fleet;
this.count = count;
this.friendlyName = friendlyName;
Context.this.loopFactories.add(this);
+ if (Context.this.startupLoopFactories.get(dock) == null)
+ Context.this.startupLoopFactories.put(dock, this);
if (prev != null) {
if (prev.getNext() != null) throw new RuntimeException();
prev.setNext(this);