Back to index

salome-kernel  6.5.0
Public Member Functions | Public Attributes | Static Public Attributes
KERNEL_PY.kernel.testdata.TestData Class Reference
Inheritance diagram for KERNEL_PY.kernel.testdata.TestData:
Inheritance graph
[legend]
Collaboration diagram for KERNEL_PY.kernel.testdata.TestData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def setName
def getName
def setType
def getType
def getDefault

Public Attributes

 NAME
 TYPE

Static Public Attributes

tuple TYPES_LIST
tuple getDefault = Callable(getDefault)

Detailed Description

This class is the placeholder for meta data associated to a study case.
The meta-data are used for organisation and indexing purposes

Definition at line 31 of file testdata.py.


Constructor & Destructor Documentation

Definition at line 41 of file testdata.py.

00041 
00042     def __init__(self):
00043         DataModeler.__init__(self)
00044         self.addAttribute(
00045             name  = "NAME",
00046             type  = TypeString,
00047             range = None
00048             )
00049         self.addAttribute(
00050             name  = "TYPE",
00051             type  = TypeInteger,
00052             range = self.TYPES_LIST.listvalues()
00053             )

Here is the call graph for this function:


Member Function Documentation

Create a default instance of TestData
@class-method

Definition at line 66 of file testdata.py.

00066 
00067     def getDefault():
00068         """
00069         Create a default instance of TestData
00070         @class-method
00071         """
00072         testdata = TestData()
00073         testdata.NAME = "my case"
00074         testdata.TYPE = TestData.TYPES_LIST.SEP
00075         return testdata

Definition at line 57 of file testdata.py.

00057 
00058     def getName(self):
00059         return self.NAME

Definition at line 63 of file testdata.py.

00063 
00064     def getType(self):
00065         return self.TYPE

def KERNEL_PY.kernel.testdata.TestData.setName (   self,
  value 
)

Definition at line 54 of file testdata.py.

00054 
00055     def setName(self, value):
00056         self.NAME = value

def KERNEL_PY.kernel.testdata.TestData.setType (   self,
  value 
)

Definition at line 60 of file testdata.py.

00060 
00061     def setType(self, value):
00062         self.TYPE = value

Here is the caller graph for this function:


Member Data Documentation

Definition at line 76 of file testdata.py.

Definition at line 55 of file testdata.py.

Definition at line 61 of file testdata.py.

Initial value:
Enumerate([
        'SEP',
        'OTHER'
    ])

Definition at line 36 of file testdata.py.


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