Mercurial > hg > Database > Alice
view src/main/java/alice/test/topology/aquarium/fx/GetMyHostName.java @ 655:1c93e82e05c6 default tip
fix timestamp
author | suruga |
---|---|
date | Sat, 17 Feb 2018 00:33:00 +0900 |
parents | c9175c310987 |
children | 15eeb439830c |
line wrap: on
line source
package alice.test.topology.aquarium.fx; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class GetMyHostName extends CodeSegment{ private Receiver info = ids.create(CommandType.PEEK); public GetMyHostName() { info.setKey("host"); } @Override public void run() { String host = info.asString(); new MoveBeforePosition(host); } }