From f33f807f7cb84c6ef66b36fdd2313c21d3d979e2 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 22 Feb 2007 16:29:57 +0100 Subject: [PATCH] API: changed getSubName() to getDestinationName() --- src/edu/berkeley/fleet/api/BenkoBox.java | 2 +- src/edu/berkeley/fleet/api/Destination.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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(); } -- 1.7.10.4