public void addLocation(String p_Type, int p_X, int p_Y) throws Exception
    {
        String add = "add_" + p_Type + "(" + appendPos(p_X, p_Y) + ",A,B).";
        SolveInfo info = m_Engine.solve(add);
                
        while(info.isSuccess())
        {
                String x = info.getVarValue("A").toString();
                String y = info.getVarValue("B").toString();

             if(!info.hasOpenAlternatives())
                break;
            info = m_Engine.solveNext();
        }
    }