ObjectDock
public abstract class Dock
A dock on a ship
| Constructor Summary | |
|---|---|
Dock(Ship ship)
|
|
| Method Summary | |
|---|---|
BitVector |
getConstant(String constantName)
get a constant associated with a dock; returns null if none found |
abstract Destination |
getDataDestination()
the data destination of this dock |
abstract Destination |
getInstructionDestination()
the instruction destination of this dock |
abstract int |
getInstructionFifoSize()
The maximum number of instructions we can put in the Dock instruction fifo, or Integer.MAX_VALUE if unbounded; note that this does not include the epilogue fifo -- that can be determined with getInstructionDestination().getFifoLength() |
abstract String |
getName()
the descriptive name of this dock (relative to its ship) |
abstract Path |
getPath(Destination dest,
BitVector signal)
returns the Path from this dock to dest, carrying the signal specified or none if null |
Ship |
getShip()
return the Ship to which this Dock belongs |
abstract boolean |
isInputDock()
returns true if this is an input dock |
abstract boolean |
isOutputDock()
returns true if this is an output dock |
String |
toString()
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dock(Ship ship)
| Method Detail |
|---|
public Ship getShip()
public abstract String getName()
public abstract boolean isInputDock()
public abstract boolean isOutputDock()
public abstract Path getPath(Destination dest,
BitVector signal)
public abstract Destination getDataDestination()
public abstract Destination getInstructionDestination()
public abstract int getInstructionFifoSize()
public BitVector getConstant(String constantName)
public String toString()
toString in class Object