2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
9 private readonly IList<string> value;
10 private readonly IDictionary<int, int> weight_map;
11 private ISet<object> atoms;
16 weight_map =
new Dictionary<int, int>();
19 public AnswerSet(IList<string> value, IDictionary<int, int> weightMap)
22 weight_map = weightMap;
25 public virtual IList<string> GetAnswerSet() =>
new ReadOnlyCollection<string>(value);
27 public virtual IList<string> Value => value;
29 public virtual ISet<object> Atoms
35 atoms =
new HashSet<object>();
37 foreach (String atom
in value)
39 object obj = mapper.GetObject(atom);
48 public virtual IDictionary<int, int> LevelWeight => weight_map;
50 public virtual IDictionary<int, int> Weights =>
new ReadOnlyDictionary<int, int>(weight_map);
52 public override string ToString() => value.ToString();