summaryrefslogtreecommitdiffstats
path: root/Monitoring/MonitoringService/Resource/slice.py
diff options
context:
space:
mode:
Diffstat (limited to 'Monitoring/MonitoringService/Resource/slice.py')
-rw-r--r--Monitoring/MonitoringService/Resource/slice.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/Monitoring/MonitoringService/Resource/slice.py b/Monitoring/MonitoringService/Resource/slice.py
new file mode 100644
index 0000000..002318f
--- /dev/null
+++ b/Monitoring/MonitoringService/Resource/slice.py
@@ -0,0 +1,40 @@
+'''
+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
+
+ @property
+ def sliceid(self):
+ if self._sliceid is None:
+ raise Exception("slice id is not set")
+ return self._sliceid
+ @sliceid.setter
+ def sliceid(self, sliceid):
+ self._sliceid = sliceid
+ @sliceid.deleter
+ def sliceid(self):
+ self._sliceid = None
+
+ @property
+ def name(self):
+ return self._name
+ @name.setter
+ def name(self, name):
+ self._name = name
+ @name.deleter
+ def name(self):
+ self._name = ""
+ \ No newline at end of file