Example #1
0
        /// <summary>
        /// Handles the AST node visit.
        /// </summary>
        /// <param name="astNode">AST node.</param>
        public override void Visit(ProblemRequirementsAstNode astNode)
        {
            astNode.RequirementsList.ForEach(requirement => ProblemData.Requirements.Add(requirement));

            if (ProblemData.Requirements.Count == 0)
            {
                ProblemData.Requirements.Add(Traits.Requirement.STRIPS);
            }
        }
Example #2
0
        // problem sections (derived from ProblemSectionAstNode)

        public virtual void Visit(ProblemRequirementsAstNode node)
        {
        }