summaryrefslogtreecommitdiffstats
path: root/Monitoring/MonitoringService/Resource/slice.py
diff options
context:
space:
mode:
authorpikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
committer pikusa <pikusa@man.poznan.pl>2013-04-03 13:18:17 (GMT)
commit2f2a3a129c91de540e66c3bfbe30b0df1942cd4b (patch)
tree2d313cdf0068af368d4de6067d676be16f6a6464 /Monitoring/MonitoringService/Resource/slice.py
parentff8aa232b071a9b54dff833714a870fd0aec0b30 (diff)
downloadnovi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.zip
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.gz
novi-public-2f2a3a129c91de540e66c3bfbe30b0df1942cd4b.tar.bz2
project commit and dir tree change
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