package simsos.simulation.component;

/**
 * Created by mgjin on 2017-06-21.
 */
public abstract class Action {
    protected boolean immediate = false;
    protected int duration = 0;
    protected String name = "";

    public Action(int duration) {
        this.duration = duration;
        if (duration == 0)
            immediate = true;
    }

    public boolean isImmediate() {
        return immediate;
    }

    public abstract void execute();
    public abstract String getName();
}

@@ -484,11 +484,333 @@
 tName();
+%0A%0A    public static Action getNullAction(int duration, String nullActionName) %7B%0A        return new Action(duration) %7B%0A%0A            @Override%0A            public void execute() %7B%0A%0A            %7D%0A%0A            @Override%0A            public String getName() %7B%0A                return nullActionName;%0A            %7D%0A        %7D;%0A    %7D
 %0A%7D%0A

Provide null action