summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/graph/model/Graphable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/c2kernel/graph/model/Graphable.java')
-rw-r--r--src/main/java/com/c2kernel/graph/model/Graphable.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/main/java/com/c2kernel/graph/model/Graphable.java b/src/main/java/com/c2kernel/graph/model/Graphable.java
new file mode 100644
index 0000000..ed55271
--- /dev/null
+++ b/src/main/java/com/c2kernel/graph/model/Graphable.java
@@ -0,0 +1,55 @@
+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;
+ }
+
+}