Mercurial > hg > Database > Alice
changeset 87:899b2b78ac75 working
minor change
author | sugi |
---|---|
date | Sun, 03 Jun 2012 18:56:24 +0900 |
parents | f8d86641b2ec |
children | 33a19ca88e43 |
files | src/alice/test/topology/movement/CheckMyName.java src/alice/test/topology/movement/SendLocation.java |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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();
--- 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();