Package data :: Module pipe_container :: Class PipeContainer
[hide private]
[frames] | no frames]

Class PipeContainer

source code


Class containing all the program data.

Instance Methods [hide private]
 
__init__(self)
Set up all the PipeContainer data structures.
source code
 
__repr__(self)
The string representation of the object.
source code
 
_back_compat_hook(self, file_version=None)
Method for converting old data structures to the new ones.
source code
 
_back_compat_hook_ri_data(self)
Converting the old relaxation data structures to the new ones.
source code
 
from_xml(self, pipe_node, file_version=None, dir=None)
Read a pipe container XML element and place the contents into this pipe.
source code
bool
is_empty(self)
Method for testing if the data pipe is empty.
source code
 
to_xml(self, doc, element)
Create a XML element for the current data pipe.
source code
 
xml_create_hybrid_element(self, doc, element)
Create an XML element for the data pipe hybridisation information.
source code

Inherited from prototype.Prototype: __clone__, __deepcopy__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Set up all the PipeContainer data structures.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

The string representation of the object.

Rather than using the standard Python conventions (either the string representation of the value or the "<...desc...>" notation), a rich-formatted description of the object is given.

Overrides: object.__repr__

_back_compat_hook(self, file_version=None)

source code 

Method for converting old data structures to the new ones.

Parameters:
  • file_version (str) - The relax version used to create the XML file.

from_xml(self, pipe_node, file_version=None, dir=None)

source code 

Read a pipe container XML element and place the contents into this pipe.

Parameters:
  • pipe_node (xml.dom.minidom.Element instance) - The data pipe XML node.
  • file_version (str) - The relax version used to create the XML file.
  • dir (str) - The name of the directory containing the results file (needed for loading external files).

is_empty(self)

source code 

Method for testing if the data pipe is empty.

Returns: bool
True if the data pipe is empty, False otherwise.

to_xml(self, doc, element)

source code 

Create a XML element for the current data pipe.

Parameters:
  • doc (xml.dom.minidom.Document instance) - The XML document object.
  • element (XML element object) - The XML element to add the pipe XML element to.

xml_create_hybrid_element(self, doc, element)

source code 

Create an XML element for the data pipe hybridisation information.

Parameters:
  • doc (xml.dom.minidom.Document instance) - The XML document object.
  • element (XML element object) - The element to add the hybridisation info to.