Beispiel #1
0
 public ConditionStatistic(ELogicOperator op, bool negate, EStatOperator statOp, ConfigurationStatistic stat, double statisticValue)
     : base(op, negate)
 {
     this.StatisticOp    = statOp;
     this.StatisticValue = statisticValue;
     this.Statistic      = new WeakReference <ConfigurationStatistic>(stat);
 }
Beispiel #2
0
            public ConditionFilter(ELogicOperator op, bool negate, ObsFilter filter, bool filterOp)
                : base(op, negate)
            {
                if (filter == null)
                {
                    throw new ArgumentNullException(nameof(filter));
                }

                this.Filter   = filter;
                this.FilterOp = filterOp;
            }
Beispiel #3
0
 public ConditionFlags(ELogicOperator op, bool negate, ESetOperator flagsOp, IEnumerable <UserFlag> flags) : base(op, negate)
 {
     this.FlagsOp = flagsOp;
     this.Flags   = new ReadOnlyCollection <WeakReference <UserFlag> >(flags.Select(WeakReferenceHelper.ToWeakReference).ToList());
 }
Beispiel #4
0
 public ConditionCluster(ELogicOperator op, bool negate, ELimitedSetOperator clusterOp, IEnumerable <Cluster> clusters)
     : base(op, negate)
 {
     this.ClustersOp = clusterOp;
     this.Clusters   = new ReadOnlyCollection <WeakReference <Cluster> >(clusters.Select(WeakReferenceHelper.ToWeakReference).ToList());
 }
Beispiel #5
0
 public ConditionPeak(ELogicOperator op, bool negate, IEnumerable <Peak> peaks, EElementOperator peaksOp)
     : base(op, negate)
 {
     this.Peaks   = new ReadOnlyCollection <WeakReference <Peak> >(peaks.Select(WeakReferenceHelper.ToWeakReference).ToList());
     this.PeaksOp = peaksOp;
 }
Beispiel #6
0
 public ConditionFilter(ELogicOperator op, bool negate, PeakFilter filter, bool filterOp)
     : base(op, negate)
 {
     this.Filter   = filter;
     this.FilterOp = filterOp;
 }
Beispiel #7
0
 protected Condition(ELogicOperator op, bool negate)
     : base(op, negate)
 {
     // NA
 }
Beispiel #8
0
 public ConditionCondition(ELogicOperator lop, bool negate, EElementOperator op, IEnumerable <ObservationInfo> enu)
     : base(lop, negate)
 {
     this.Operator      = op;
     this.Possibilities = enu.ToList().AsReadOnly();
 }
Beispiel #9
0
 public Condition(ELogicOperator op, bool negate)
     : base(op, negate)
 {
     // NA
 }
Beispiel #10
0
 protected ConditionBase(ELogicOperator op, bool negate)
 {
     this.Negate            = negate;
     this.CombiningOperator = op;
 }