Package AccessGrid :: Module DataStore :: Class DataDescriptionContainer
[show private | hide private]
[frames | no frames]

Class DataDescriptionContainer


A DataDescriptionContainer includes all DataDescription representations of data in the DataStore. The DataStore calls this class to manage the Descriptions.
Method Summary
  __init__(self)
  AddData(self, dataDescription)
Replace the current description for dataDescription.name with this one.
  AsINIBlock(self)
AsINIBlock serializes the data as an INI formatted block of text.
  GetData(self, fileName)
GetData retreives the DataDescription associated with fileName.
  GetDataDescriptions(self)
This methods returns a list containing all present DataDescriptions.
  GetDataFromId(self, id)
  LoadPersistentData(self, dataList)
Adds a list of DataDescriptions without distributing events
  RemoveData(self, dataDescription)
RemoveData removes a DataDescription **Arguments:** *dataDescription* A data description.
  SetEventDistributor(self, eventDistributor, channelId)
Sets the object used to send events
  UpdateData(self, dataDescription)
**Arguments:** *dataDescription* DataDescription to update **Raises:** *DataNotFound* Raised when the data is not found in the Venue.

Method Details

AddData(self, dataDescription)

Replace the current description for dataDescription.name with
this one.

**Arguments:**
    *dataDescription* A real data description.
    
**Raises:**
    *DataAlreadyPresent* Raised when the data is not found in the Venue.

AsINIBlock(self)

AsINIBlock serializes the data as an INI formatted block of text.

**Returns** *iniblock* string of serialized data. If no data is present,

GetData(self, fileName)

GetData retreives the DataDescription associated with fileName.

**Arguments:**
    *fileName* The name of the data to be retrieved.

**Returns:**
    *dataDescription* A data description that corresponds
    to the name passed in.

    *None* When the data is not found

GetDataDescriptions(self)

This methods returns a list containing all present DataDescriptions.

**Returns**
    *data* A list of DataDescription

LoadPersistentData(self, dataList)

Adds a list of DataDescriptions without distributing events

**Arguments** *dataList* List of DataDescriptions you want to add

RemoveData(self, dataDescription)

RemoveData removes a DataDescription 

**Arguments:**
    *dataDescription* A data description.

**Raises:**
    *DataNotFound* Raised when the data is not found.

SetEventDistributor(self, eventDistributor, channelId)

Sets the object used to send events

**Arguments**

*eventDistributor* Object that sends events *channelId* channel ID to use for events

UpdateData(self, dataDescription)

**Arguments:**
    *dataDescription* DataDescription to update
    
**Raises:**
    *DataNotFound* Raised when the data is not found in the Venue.

Generated by Epydoc 2.1 on Thu Apr 14 16:39:26 2005 http://epydoc.sf.net