/* FIXME use a separate interface for the methods that a Command can call */ public Command(string name, ICommandableOperator op) { this.op = op; this.name = name; }
public ForceInterval(ICommandableOperator op, int milliseconds) : base("ForceInterval", op) { this.cmdOP = op; this.milliseconds = milliseconds; }
public Start(ICommandableOperator op) : base("Start", op) { }
public Freeze(ICommandableOperator cmdOP, bool freeze) : base(freeze?"Freeze": "Unfreeze", cmdOP) { this.cmdOP = cmdOP; this.freeze = freeze; }
/* perhaps just one unified interface is needed :( * I wanted to prevent commands from running methods that are intended for the service only */ public OperatorService(IOperator op, ICommandableOperator cmdOP) { OP = op; this.cmdOP = cmdOP; }