lojix/power_model/src/main/com/thesett/aima/attribute/impl/HierarchyAttribute.java
private void writeObject(ObjectOutputStream out) throws IOException
    {
        // Print out some information about the serialized object.
        /*log.fine("Serialized hierarchy attribute = " + this);*/
        /*log.fine("Serialized hierarchy attribute class = " + attributeClass);*/

        /*log.fine("Serialized attribute classes in static class map are: ");*/

        for (HierarchyClassImpl attributeClass : attributeClasses.values())
        {
            /*log.fine(attributeClass.toString());*/
        }

        // Perform default serialization.
        // out.defaultWriteObject();

        // Serialized the attribute by value, that is, its full path and the name of its attribute class.
        List<String> pathValue = getPathValue();
        String[] pathArrayValue = pathValue.toArray(new String[pathValue.size()]);

        out.writeObject(pathArrayValue);
        out.writeObject(attributeClass.getName());
    }
private void writeObject(ObjectOutputStream out) throws IOException
    {
        // Print out some information about the serialized object.
        /*log.fine("Serialized hierarchy attribute = " + this);*/
        /*log.fine("Serialized hierarchy attribute class = " + attributeClass);*/

        /*log.fine("Serialized attribute classes in static class map are: ");*/

        for (HierarchyClassImpl attributeClass : attributeClasses.values())
        {
            /*log.fine(attributeClass.toString());*/
        }

        // Perform default serialization.
        // out.defaultWriteObject();

        // Serialized the attribute by value, that is, its full path and the name of its attribute class.
        List<String> pathValue = getPathValue();
        String[] pathArrayValue = pathValue.toArray(new String[pathValue.size()]);

        out.writeObject(pathArrayValue);
        out.writeObject(attributeClass.getName());
    }
Serialized a hierarchy attribute.

@param  out The object output stream.

@throws IOException If an IO exception occurs.