Пример #1
0
 private SymbolicFeatureValue(SymbolicFeatureValue sfv)
     : base(sfv)
 {
     _feature = sfv._feature;
     _first   = sfv._first;
     _flags   = sfv._flags;
 }
Пример #2
0
        public void AddValue(SymbolicFeature feature, IEnumerable <FeatureSymbol> values)
        {
            if (values == null)
            {
                throw new ArgumentNullException("values");
            }

            FeatureSymbol[] vals = values.ToArray();
            AddValue(feature, vals.Length == 0 ? new SymbolicFeatureValue(feature) : new SymbolicFeatureValue(vals));
        }
Пример #3
0
 public SymbolicFeatureValue(IEnumerable <FeatureSymbol> values)
 {
     FeatureSymbol[] symbols = values.ToArray();
     if (symbols.Length == 0)
     {
         throw new ArgumentException("values cannot be empty", "values");
     }
     _feature = symbols[0].Feature;
     _first   = symbols[0];
     Set(symbols);
 }
Пример #4
0
        public SymbolicFeatureValue GetValue(SymbolicFeature feature)
        {
            SymbolicFeatureValue value;

            if (TryGetValue(feature, out value))
            {
                return(value);
            }

            throw new ArgumentException("The specified value could not be found.", "feature");
        }
Пример #5
0
 private SymbolicFeatureValue(SymbolicFeature feature, ulong flags)
 {
     _feature = feature;
     _flags   = flags;
     SetFirst();
 }
Пример #6
0
 public SymbolicFeatureValue(SymbolicFeature feature, string varName, bool agree)
     : base(varName, agree)
 {
     _feature = feature;
 }
Пример #7
0
 public SymbolicFeatureValue(FeatureSymbol value)
 {
     _feature = value.Feature;
     _first   = value;
     Set(value.ToEnumerable());
 }
Пример #8
0
 public SymbolicFeatureValue(SymbolicFeature feature)
 {
     _feature = feature;
 }
Пример #9
0
 public void AddValue(SymbolicFeature feature, params FeatureSymbol[] values)
 {
     AddValue(feature, values.Length == 0 ? new SymbolicFeatureValue(feature) : new SymbolicFeatureValue(values));
 }
Пример #10
0
 public void AddValue(SymbolicFeature feature, IEnumerable <FeatureSymbol> values)
 {
     FeatureSymbol[] vals = values.ToArray();
     AddValue(feature, vals.Length == 0 ? new SymbolicFeatureValue(feature) : new SymbolicFeatureValue(vals));
 }