Mercurial > hg > Database > Alice
view src/alice/test/topology/share/LookUpData.java @ 147:ae6ed9c35288 working
change share test
author | sugi |
---|---|
date | Tue, 09 Oct 2012 19:29:33 +0900 |
parents | ed78890ed8e9 |
children | 52a1fa5ba38b |
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("local", key, index); } public LookUpData(String key,int index, int depth){ this.key = key; this.depth = depth; this.data.setKey("local", key, index); } @Override public void run(){ new LookUpData(this.key,this.data.index); DataInfo di = data.asClass(DataInfo.class); System.out.println("Time "+(System.currentTimeMillis()-di.getTime())+" ms"); } }