summaryrefslogtreecommitdiffstats
path: root/Monitoring/src/main/python/Resource/slice.py
diff options
context:
space:
mode:
Diffstat (limited to 'Monitoring/src/main/python/Resource/slice.py')
-rw-r--r--Monitoring/src/main/python/Resource/slice.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/Monitoring/src/main/python/Resource/slice.py b/Monitoring/src/main/python/Resource/slice.py
new file mode 100644
index 0000000..a66a93d
--- /dev/null
+++ b/Monitoring/src/main/python/Resource/slice.py
@@ -0,0 +1,37 @@
+'''
+Created on Oct 30, 2012
+
+@author: steger
+'''
+
+class slice_pointer(object):
+ '''
+ classdocs
+ '''
+
+ def __init__(self, sliceid = None, slicename = ""):
+ '''
+ Constructor
+ '''
+ self._sliceid = sliceid
+ self._name = slicename
+
+ def _get_sliceid(self):
+ if self._sliceid is None:
+ raise Exception("slice id is not set")
+ return self._sliceid
+ def _set_sliceid(self, sliceid):
+ self._sliceid = sliceid
+ def _del_sliceid(self):
+ self._sliceid = None
+
+ def _get_name(self):
+ return self._name
+ def _set_name(self, name):
+ self._name = name
+ def _del_name(self):
+ self._name = ""
+
+ sliceid = property(_get_sliceid,_set_sliceid,_del_sliceid)
+
+ name = property(_get_name,_set_name,_del_name)