示例#1
0
        public static IMixEvaluator NestedMixEntryModelToMixEvaluator(MixType mixType, List <IMixEvaluator> mixes)
        {
            NestedEvalType nestedEvalType = NestedEvalType.Unknown;

            switch (mixType)
            {
            case MixType.And:
                nestedEvalType = NestedEvalType.All;
                break;

            case MixType.Or:
                nestedEvalType = NestedEvalType.Any;
                break;

            case MixType.Not:
                nestedEvalType = NestedEvalType.None;
                break;

            default:
                DebugHelper.Alert(new CallerInfo(), "Unexpected NESTED_TYPE MixType {0}", mixType);
                break;
            }

            return(new NestedMixEvaluator(mixes, nestedEvalType, mixType));
        }
 public NestedMixEvaluator(List<IMixEvaluator> mixes, NestedEvalType evalType, MixType type)
 {
     Mixes = mixes;
     EvalType = evalType;
     MixType = type;
 }
示例#3
0
 public NestedMixEvaluator(List <IMixEvaluator> mixes, NestedEvalType evalType, MixType type)
 {
     Mixes    = mixes;
     EvalType = evalType;
     MixType  = type;
 }