1 package edu.berkeley.fleet.api;
3 public abstract class BenkoBox {
5 /** you should extend subclasses, not this class directly */
9 /** the descriptive name of this benkobox (relative to its ship) */
10 public abstract String getName();
12 /** return the Ship to which this BenkoBox belongs */
13 public abstract Ship getShip();
15 /** the maximum number of instructions we can put in the BenkoBox instruction fifo,
16 * or Integer.MAX_VALUE if unbounded */
17 public abstract int getInstructionFifoLength();
19 public static abstract class Inbox extends BenkoBox {
23 public static abstract class Outbox extends BenkoBox {