Example #1
0
 /* 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;
 }
Example #2
0
 public ForceInterval(ICommandableOperator op, int milliseconds) : base("ForceInterval", op)
 {
     this.cmdOP        = op;
     this.milliseconds = milliseconds;
 }
Example #3
0
 public Start(ICommandableOperator op) : base("Start", op)
 {
 }
Example #4
0
 public Freeze(ICommandableOperator cmdOP, bool freeze) : base(freeze?"Freeze": "Unfreeze", cmdOP)
 {
     this.cmdOP  = cmdOP;
     this.freeze = freeze;
 }
Example #5
0
        /* 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;
        }