FLEXPART Testing Environment CTBTO WO8
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
distrotest.BasicTest.BasicTest Class Reference
Inheritance diagram for distrotest.BasicTest.BasicTest:
Inheritance graph
[legend]
Collaboration diagram for distrotest.BasicTest.BasicTest:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def get_descr
 
def get_test_type
 
def get_threshold
 

Private Attributes

 _description
 
 _test_type
 
 _threshold
 

Detailed Description

Container for BasicTest properties

Definition at line 3 of file BasicTest.py.

Constructor & Destructor Documentation

def distrotest.BasicTest.BasicTest.__init__ (   self,
  descr = None,
  test_type = None,
  threshold = None 
)

Definition at line 9 of file BasicTest.py.

9 
10  def __init__(self, descr=None, test_type=None, threshold=None):
11 
12  if descr:
13  self._description = descr
14  else:
15  raise Exception('descr not defined')
16 
17  if test_type:
18  self._test_type = test_type
19  else:
20  raise Exception('test_type not defined')
21 
22  if threshold:
23  self._threshold = threshold
24  try:
25  dummy_var = float(threshold)
26  self._threshold = dummy_var
27  except:
28  raise Exception('threshold not a valid number')
29  else:
30  raise Exception('threshold not defined')
31 

Member Function Documentation

def distrotest.BasicTest.BasicTest.get_descr (   self)

Definition at line 32 of file BasicTest.py.

32 
33  def get_descr(self):
34  return self._description
def distrotest.BasicTest.BasicTest.get_test_type (   self)

Definition at line 35 of file BasicTest.py.

35 
36  def get_test_type(self):
37  return self._test_type
def distrotest.BasicTest.BasicTest.get_threshold (   self)

Definition at line 38 of file BasicTest.py.

38 
39  def get_threshold(self):
40  return self._threshold
41 
42 
43 

Member Data Documentation

distrotest.BasicTest.BasicTest._description
private

Definition at line 12 of file BasicTest.py.

distrotest.BasicTest.BasicTest._test_type
private

Definition at line 17 of file BasicTest.py.

distrotest.BasicTest.BasicTest._threshold
private

Definition at line 22 of file BasicTest.py.


The documentation for this class was generated from the following file: