From: adam Date: Thu, 22 Feb 2007 15:29:57 +0000 (+0100) Subject: API: changed getSubName() to getDestinationName() X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f33f807f7cb84c6ef66b36fdd2313c21d3d979e2;p=fleet.git API: changed getSubName() to getDestinationName() --- diff --git a/src/edu/berkeley/fleet/api/BenkoBox.java b/src/edu/berkeley/fleet/api/BenkoBox.java index d5e3b21..0c05e0d 100644 --- a/src/edu/berkeley/fleet/api/BenkoBox.java +++ b/src/edu/berkeley/fleet/api/BenkoBox.java @@ -31,6 +31,6 @@ public abstract class BenkoBox extends Destination { } /** default implementation: the empty string */ - public String getSubName() { return ""; } + public String getDestinationName() { return ""; } } diff --git a/src/edu/berkeley/fleet/api/Destination.java b/src/edu/berkeley/fleet/api/Destination.java index 6a2ab7f..6d5bf81 100644 --- a/src/edu/berkeley/fleet/api/Destination.java +++ b/src/edu/berkeley/fleet/api/Destination.java @@ -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(); }