Ejemplo n.º 1
0
 public QueueEntry(PartyType from, int line, Operation.Operation op, NumericArray result)
 {
     this.from   = from;
     this.line   = line;
     this.op     = op;
     this.result = result;
 }
Ejemplo n.º 2
0
 public void addOperation(Operation.Operation resource)
 {
     Operation.Operation[] temp = new Operation.Operation[++OperationCount];
     if (Operations != null)
     {
         Operations.CopyTo(temp, 0);
     }
     temp[temp.Length - 1] = resource;
     Operations            = temp;
 }
Ejemplo n.º 3
0
 // pass a "receive" resuest to dispatcher,
 // when the message is received, the operation will be called to cuntinue the execution
 public void ReceiveFrom(PartyType from, int index, Operation.Operation op, NumericArray result)
 {
     dispatcher.Add(from, index, op, result);
 }
Ejemplo n.º 4
0
 public void Add(PartyType from, int index, Operation.Operation op, NumericArray result)
 {
     queue.Enqueue(new QueueEntry(from, index, op, result));
 }