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

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