Exemple #1
0
        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();
        }
Exemple #2
0
        public static ServerProblem CreateInstance(PlanningParser.DomainContext domainContext, PlanningParser.ServerProblemContext context)
        {
            ServerProblem result = new ServerProblem(domainContext, context);

            return(result);
        }