summaryrefslogtreecommitdiff
path: root/src-py/model
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-15 18:36:02 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-15 18:36:02 +0200
commitb6824dd09a58d2e400851fc310b416f4311bd030 (patch)
tree5fb6f7561084bf3764904abd9c21eb37f9087f85 /src-py/model
parent252ec42ffdd065b3db0d564a1b57b0a446a7fcd8 (diff)
model.graph package
Diffstat (limited to 'src-py/model')
-rw-r--r--src-py/model/__init__.py0
-rw-r--r--src-py/model/graph.py37
-rw-r--r--src-py/model/model.py9
3 files changed, 46 insertions, 0 deletions
diff --git a/src-py/model/__init__.py b/src-py/model/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src-py/model/__init__.py
diff --git a/src-py/model/graph.py b/src-py/model/graph.py
new file mode 100644
index 00000000..9891c4ef
--- /dev/null
+++ b/src-py/model/graph.py
@@ -0,0 +1,37 @@
+class Attribute_Diff():
+ """
+ Represents a change to note attributes, where nodes can represent
+ either logical nodes or logical links, and attributes can be added,
+ changed or removed
+ """
+ pass
+
+class Topo_Diff():
+ """
+ Represents a change to the graph topology
+ """
+
+ def __init__(self, link_set_rm=[],
+ node_set_rm=[],
+ node_set_add=[],
+ link_set_add=[]):
+ self.link_set_rm = link_set_rm
+ self.node_set_rm = node_set_rm
+ self.node_set_add = node_set_add
+ self.link_set_add = link_set_add
+
+ @property
+ def link_set_rm(self):
+ return self.link_set_rm
+
+ @property
+ def node_set_rm(self):
+ return self.node_set_rm
+
+ @property
+ def link_set_add(self):
+ return self.link_set_add
+
+ @property
+ def node_set_add(self):
+ return self.node_set_add
diff --git a/src-py/model/model.py b/src-py/model/model.py
new file mode 100644
index 00000000..9ee61397
--- /dev/null
+++ b/src-py/model/model.py
@@ -0,0 +1,9 @@
+class link():
+ """
+ documentation anchor - this class currently carries no implementation
+ and only acts as a documentation anchor
+
+ link['__src'] - meta attribute for link source
+ link['__dst'] - meta attribute for link destination
+ """
+ pass