Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/SaveCookie.java @ 599:3284428f525e dispose
add MetaCodeSegment & MetaDSM
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Feb 2016 01:16:35 +0900 |
parents | 8f765e3eed24 |
children | 8a9fd716c335 |
line wrap: on
line source
package alice.topology.node; import alice.codesegment.CodeSegment; import alice.codesegment.MetaCodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class SaveCookie extends MetaCodeSegment { private Receiver info = ids.create(CommandType.PEEK); public SaveCookie(int topMNumber){ info.setKey("cookie"+topMNumber); } @Override public void run() { System.out.println("SaveCookie:" + info.asString()); } }