protected override string GetString() { string s = "(" + Name + " " + Parser.ListToString((List <Constant>)Constants) + ")"; if (Negation) { s = "(not " + s + ")"; } return(s); }
public override string ToString() { string s = "(problem " + Name + "\n"; s += "(domain " + Domain.Name + ")\n"; s += "(init "; //s += "(known " + Parser.ListToString(m_lKnown) + ")\n"; s += "(hidden " + Parser.ListToString(m_lHidden) + "))\n"; s += ")"; return(s); }
public override string ToString() { string s = "(" + Operator + " "; foreach (KeyValuePair <string, string> p in Parameters) { s += "(" + p.Key + " - " + p.Value + ") "; } s += Parser.ListToString(Operands) + ")"; return(s); }
protected override string GetString() { string s = ""; if (Negation) { s = "(not "; } s += "(" + Name + " " + Parser.ListToString(m_lParameters) + ")"; if (Negation) { s += ")"; } return(s); }