API: changed getSubName() to getDestinationName()
authoradam <adam@megacz.com>
Thu, 22 Feb 2007 15:29:57 +0000 (16:29 +0100)
committeradam <adam@megacz.com>
Thu, 22 Feb 2007 15:29:57 +0000 (16:29 +0100)
src/edu/berkeley/fleet/api/BenkoBox.java
src/edu/berkeley/fleet/api/Destination.java

index d5e3b21..0c05e0d 100644 (file)
@@ -31,6 +31,6 @@ public abstract class BenkoBox extends Destination {
     }
 
     /** default implementation: the empty string */
-    public String getSubName() { return ""; }
+    public String getDestinationName() { return ""; }
 
 }            
index 6a2ab7f..6d5bf81 100644 (file)
@@ -7,6 +7,10 @@ public abstract class Destination {
     /** return the Ship to which this BenkoBox belongs */
     public abstract Ship   getShip();
 
-    /** this returns the third component of the name; that is in "ship.port.foo", it returns "foo" */
-    public abstract String getSubName();
+    /**
+     *  this returns the third component of the name; that is in
+     *  "ship.port.foo", it returns "foo", and in "ship.port" it
+     *  returns ""
+     */
+    public abstract String getDestinationName();
 }