Exemplo n.º 1
0
        public List <string> GetQueries(string prefix)
        {
            var    result = new List <string>();
            string query  = "";

            if (ConditionsStrings == null || !ConditionsStrings.Any())
            {
                query = prefix + "_after([[" + GoalString + "]],[" + ActionsString + "],[" + ExecutorsString + "],[])";

                result.Add(query);
            }
            else
            {
                result.Add(prefix + "_after([[" + GoalString + "]],[" + ActionsString + "],[" + ExecutorsString + "],[" + ConditionsStrings + "])");
            }
            return(result);
        }
Exemplo n.º 2
0
        public List <string> GetQueries(string prefix)
        {
            var result = new List <string>();

            string query = "";

            if (ConditionsStrings == null || !ConditionsStrings.Any())
            {
                query = prefix + "_accessible([" + GoalString + "])";
                result.Add(query);
            }
            else
            {
                query = prefix + "_accessible([" + GoalString + "], [" + ConditionsStrings + "])";
                result.Add(query);
            }
            return(result);
        }