# HG changeset patch # User sugi # Date 1338717384 -32400 # Node ID 899b2b78ac755a0496372b0f7befef4c62a648f9 # Parent f8d86641b2ec50a6afb2f0a650097e0903350865 minor change diff -r f8d86641b2ec -r 899b2b78ac75 src/alice/test/topology/movement/CheckMyName.java --- a/src/alice/test/topology/movement/CheckMyName.java Sun Jun 03 18:48:53 2012 +0900 +++ b/src/alice/test/topology/movement/CheckMyName.java Sun Jun 03 18:56:24 2012 +0900 @@ -9,11 +9,12 @@ public class CheckMyName extends CodeSegment { Receiver host = ids.create(CommandType.PEEK); + Pattern pattern = Pattern.compile("^(node|cli)([0-9]+)$"); + @Override public void run(){ String name = host.asString(); - Pattern pattern = Pattern.compile("^(node|cli)([0-9]+)$"); Matcher matcher = pattern.matcher(name); matcher.find(); diff -r f8d86641b2ec -r 899b2b78ac75 src/alice/test/topology/movement/SendLocation.java --- a/src/alice/test/topology/movement/SendLocation.java Sun Jun 03 18:48:53 2012 +0900 +++ b/src/alice/test/topology/movement/SendLocation.java Sun Jun 03 18:56:24 2012 +0900 @@ -12,12 +12,12 @@ public Receiver nowX = ids.create(CommandType.PEEK); public Receiver host = ids.create(CommandType.PEEK); + Pattern pattern = Pattern.compile("^(cli)([0-9]+)$"); @Override public void run(){ System.out.println("SendLocation"); String name = host.asString(); - Pattern pattern = Pattern.compile("^(node|cli)([0-9]+)$"); Matcher matcher = pattern.matcher(name); matcher.find();