|
- AppendPage(self, info={}, array=None) from PyDVT.Data.Data
- CopyPages(self, source_obj, index_list=0, position=None, synchronized=1, invalidate=1) from PyDVT.Data.Data
- Delete(self, index=None) from PyDVT.Data.Data
- Destroy(self, source=None) from PyDVT.Data.Data
- GetCoordValue(self, coord) from PyDVT.Data.Data
- GetInfo(self) from PyDVT.Data.Data
- GetItemPageInfo(self, key, index=0) from PyDVT.Data.Data
- GetNumberPages(self) from PyDVT.Data.Data
- GetPageArray(self, index=0) from PyDVT.Data.Data
- GetPageArrayRegion(self, pos=None, size=None, index=0, return_dimention=None) from PyDVT.Data.Data
- GetPageDimention(self, index=0) from PyDVT.Data.Data
- GetPageInfo(self, index=0) from PyDVT.Data.Data
- GetPageListIndex(self, index) from PyDVT.Data.Data
- GetPageSize(self, index=0) from PyDVT.Data.Data
- GetSource(self) from PyDVT.Data.Data
- GetSourceInfo(self, key=None)
- Returns information about the Spec version set by
SetSource, to give application possibility to know about
it before loading.
Returns a dictionary with the keys "Size" (number of possible
keys to this source) and "KeyList" (list of all available keys
in this source). Each element in "KeyList" is an shared memory
array name.
If key is set as an array name, returns information about it.
- GetSourceLoadedKeys(self, source_name) from PyDVT.Data.Data
- GetSourceLoadedNames(self) from PyDVT.Data.Data
- GetSourceName(self) from PyDVT.Data.Data
- InsertPage(self, info={}, array=None, index=None) from PyDVT.Data.Data
- Invalidate(self, page_list='ALL') from PyDVT.Data.Data
- IsCoordValid(self, coord) from PyDVT.Data.Data
- LoadSource(self, key_list='ALL', append=0, invalidate=1, row='ALL', col='ALL')
- Creates a given number of pages, getting data from the actual
source (set by SetSource)
Parameters:
key_list: list of all keys to be read from source. It is a list of
string, shared memory array names, to be read from the file.
It can be also one single string, if only one array is to be read.
append: If non-zero appends to the end of page list.
Otherwise, initializes the page list
invalidate: if non-zero performas an invalidade call after
loading
row: If set to an integer, loads a single row (0-based indexed)
col: If set to an integer, loads a single column (0-based indexed)
- Refresh(self) from PyDVT.Data.Data
- RefreshPage(source_obj, self, page)
- Virtual method, implements seeking for changes in data.
Returns non-zero if the page was changed.
If not implemented in the derived class, this class doesn't
support dinamic changes monitoring.
As pages can be copied to different Data objects, and can
store the original RefreshPage method for updating, source_obj
refers to the object that was origin of the page data, while
self indicates the object that actually owns the page
with index page.
It was done this way because if it is stored the reference to
the unbound method, python doesn't allow you to call it with
an object of different data type.
Important:
Derived classes shall update the page: self.Pages[page]
but not: source_obj.Pages[page]
- SetSource(self, source_name=None)
- Sets a new source for data retrieving, an spec version.
If spec exists, self.Source will be this spec name.
Parameters:
source_name: name of spec version
- _Data__ThreadProc = __ThreadProc(self) from PyDVT.Data.Data
- _SPSData__GetArrayInfo = __GetArrayInfo(self, array)
- _SPSData__GetSourceInfo = __GetSourceInfo(self)
- __init__(self, refresh_interval=None, info={})
- See Data.__init__
|