From 254ee6f47eebfc00462c10756a92066e82cc1a96 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 21 Jun 2011 15:46:02 +0200 Subject: Initial commit --- source/com/c2kernel/graph/model/Graphable.java | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 source/com/c2kernel/graph/model/Graphable.java (limited to 'source/com/c2kernel/graph/model/Graphable.java') diff --git a/source/com/c2kernel/graph/model/Graphable.java b/source/com/c2kernel/graph/model/Graphable.java new file mode 100755 index 0000000..5dde105 --- /dev/null +++ b/source/com/c2kernel/graph/model/Graphable.java @@ -0,0 +1,53 @@ +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; + } + public GraphModel getChildGraphModel() { + return children; + } + + public Object getCreationContext() { + return this; + } + +} -- cgit v1.2.3