Mercurial > hg > Database > Alice
view src/alice/test/topology/share/LookUpData.java @ 217:b5c642ba998e working
change as** method and remove "local" key in TEST
author | sugi |
---|---|
date | Wed, 27 Mar 2013 20:02:38 +0900 |
parents | 21bd8af1cf26 |
children |
line wrap: on
line source
package alice.test.topology.share; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class LookUpData extends CodeSegment{ private Receiver data = ids.create(CommandType.PEEK); String key; int depth; public LookUpData(String key,int index){ this.key = key; this.data.setKey(key, index); } public LookUpData(String key,int index, int depth){ this.key = key; this.depth = depth; this.data.setKey(key, index); } @Override public void run(){ new LookUpData(this.key,this.data.index); DataInfo di = data.asClass(DataInfo.class); System.out.println(System.nanoTime()-di.getTime()); } }