view codegear/CodeGearExecutor.cs @ 71:1169915705ab default tip

fix TopologyNode connect
author KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
date Sun, 06 Feb 2022 16:47:41 +0900
parents 0cd2684e401b
children
line wrap: on
line source

namespace Christie_net.codegear {
public class CodeGearExecutor {
    private CodeGear cg;
    private CodeGearManager cgm;
    private int priority = 5;

    public CodeGearExecutor(CodeGear cg, CodeGearManager cgm, int priority) {
        this.cg = cg;
        this.cgm = cgm;
        this.priority = priority;
    }

    public void Run() {
        cg.Run(cgm);
    }

    public int GetPriority() {
        return priority;
    }

    public void SetPriority(int priority) {
        this.priority = priority;
    }
}
}