Пример #1
0
        public override void Evaluate <T>(
            ICircuitEvaluator <T> evaluator,
            EvaluationState <T> evaluationState)
        {
            T value = evaluator.EvaluateNotGate(
                evaluationState.GetGateEvaluationValue(_inputGate)
                );

            evaluationState.SetGateEvaluationValue(this, value);
        }
Пример #2
0
 public T EvaluateNotGate(T value)
 {
     return(_innerEvaluator.EvaluateNotGate(value));
 }
Пример #3
0
 public T EvaluateNotGate(T value, GateContext gateContext, CircuitContext circuitContext)
 {
     return(_innerEvaluator.EvaluateNotGate(value, gateContext, circuitContext));
 }
Пример #4
0
 public Task <T> EvaluateNotGate(Task <T> value, GateContext gateContext, CircuitContext circuitContext)
 {
     return(value.ContinueWith(task => _innerEvaluator.EvaluateNotGate(task.Result, gateContext, circuitContext)));
 }