summaryrefslogtreecommitdiffstats
path: root/Monitoring/MonitoringService/Resource/slice.py
blob: 002318f0594e386b334b81d6bef01af3a8c84abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 = ""