works
[fleet.git] / testCode / edu / berkeley / fleet / api / Destination.java
1 package edu.berkeley.fleet.api;
2
3 /**
4  *  A physical destination on the switch fabric -- may have multiple
5  *  paths to it from any particular source.
6  */
7 public abstract class Destination {
8
9     private final Dock dock;
10
11     public Destination(Dock dock) {
12         this.dock = dock;
13     }
14
15     /** Get the Dock to which this destination belongs, null if none. */
16     public Dock getDock() { return dock; }
17
18     /** subclasses must override this */
19     public abstract String toString();
20
21 }