package com.c2kernel.graph.model; /** * @version $Revision: 1.6 $ $Date: 2003/05/12 13:10:20 $ * @author $Author: abranson $ */ import com.c2kernel.utils.CastorHashMap; abstract public class Graphable extends Vertex { protected CastorHashMap mProperties = null; public GraphModel children; public void setProperties(CastorHashMap props) { mProperties = props; } public CastorHashMap getProperties() { return mProperties; } /** @associates Graphable that is directly containing it*/ private Graphable parent; /** * Returns the parent. * @return Graphable */ public Graphable getParent() { return parent; } /** * Sets the parent. * @param parent The parent to set */ public void setParent(Graphable parent) { this.parent = parent; } @Override public GraphModel getChildGraphModel() { return children; } @Override public Object getCreationContext() { return this; } }