-
Notifications
You must be signed in to change notification settings - Fork 2
/
Feature.py
executable file
·40 lines (39 loc) · 970 Bytes
/
Feature.py
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
class Feature(object):
"""Type of data"""
id=""
active=True
type=""
description=""
start=0
end=0
def __init__(self, type, description, start, end, id="", initial_active=True):
self.id=id
self.active=initial_active
self.type=type
self.description=description
self.start=start
self.end=end
def getId(self):
return self.id
def setId(self, s):
self.id=id
def getActive(self):
return self.active
def setActive(self, bool):
self.active=bool
def getType(self):
return self.type
def setType(self, s):
self.type=type
def getDescription(self):
return self.description
def setDescription(self, s):
self.description=s
def getStart(self):
return self.start
def setStart(self, n):
self.start=n
def getEnd(self):
return self.end
def setEnd(self, n):
self.end=n