public ObjectBase(ServerProblem problem) { _predBooleanMap = new Dictionary <string, bool>(); _predicateDict = problem.PredicateDict; foreach (var predicateFullName in _predicateDict.Keys) { bool value = problem.TruePredSet.Contains(predicateFullName); _predBooleanMap.Add(predicateFullName, value); } CurrentCuddNode = GetKbNode(); }
public static ServerProblem CreateInstance(PlanningParser.DomainContext domainContext, PlanningParser.ServerProblemContext context) { ServerProblem result = new ServerProblem(domainContext, context); return(result); }