From: adam Date: Mon, 12 Feb 2007 09:39:33 +0000 (+0100) Subject: added run() method for Slipway X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1e6ad12a3d9705020bb090f515245eb1efcc44a7;p=fleet.git added run() method for Slipway --- diff --git a/src/edu/berkeley/fleet/slipway/Slipway.java b/src/edu/berkeley/fleet/slipway/Slipway.java index a161a02..5989d5f 100644 --- a/src/edu/berkeley/fleet/slipway/Slipway.java +++ b/src/edu/berkeley/fleet/slipway/Slipway.java @@ -32,6 +32,12 @@ public class Slipway extends Interpreter { createShip("Dcache", "dcache2"); } + public FleetProcess run(final byte[] instructions) { + try { + return new Client(instructions); + } catch (IOException e) { throw new RuntimeException(e); } + } + public void dumpFabric(boolean quiet) { // FIXME: this is really ugly: the order of port declarations in // the XXXShip.java file must match the order in the .balsa file! @@ -277,4 +283,5 @@ public class Slipway extends Interpreter { private static String getUniqueName(Ship ship) { return ship.getType() + ship.getOrdinal(); } + } \ No newline at end of file