view Paper/src/HelloWorldCodeGear.java @ 6:38dfa4d8b0be

add GearsFile & Directory
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Sun, 16 Jan 2022 23:43:50 +0900
parents e950b7aaeeaa
children
line wrap: on
line source

package christie.example.HelloWorld;

import christie.annotation.Peek;
import christie.annotation.Take;
import christie.codegear.CodeGear;
import christie.codegear.CodeGearManager;

public class HelloWorldCodeGear extends CodeGear {

    \@Take
    String helloWorld;

    @Override
    protected void run(CodeGearManager cgm) {
        System.out.print(helloWorld + " ");
        cgm.setup(new HelloWorldCodeGear());
        cgm.getLocalDGM().put(helloWorld,helloWorld);
    }
}