@Override
    public String getObjectiveOutput(ColorList color, int level) {
        String str = "";
        for (int i = 0; i <= level; i++)
            str = str + "\t";

        str = str + getName() + " " + getWeight() + " { ";

        AttributeDomain d = getDomain();
        double vals[] = d.getWeights();
        for (int i = 0; i < vals.length; i++) {
            if (d.getType() == AttributeDomain.DISCRETE) {
                String elts[] = d.getElements();
                str = str + "\"" + elts[i] + "\" ";
            } else {
                double kts[] = d.getKnots();
                str = str + kts[i] + " ";
            }
            str = str + vals[i];
            if (i != (vals.length - 1))
                str = str + ",";
            str = str + " ";

        }
        str = str + "}\n";
        for (int i = 0; i <= level + 1; i++)
            str = str + "\t";

        str = str + "color=" + getName();

        if ((d.getType() == AttributeDomain.CONTINUOUS)
                && (getUnitsName() != "")) {
            str = str + " units=" + getUnitsName();
        }
        str = str + " end\n";

        return str;
    }