view src/main/java/alice/test/topology/aquarium/fx/GetMyHostName.java @ 547:e91a574b69de dispose

remove index
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Tue, 18 Aug 2015 16:15:17 +0900
parents 15eeb439830c
children
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", this);
    }
    @Override
    public void run() {
        String host = info.asString();
        new MoveBeforePosition(host);
    }

}