/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
DybPython::Catalog::RunSelection Class Reference

List of all members.

Public Member Functions

def __init__
def __add__
def __getitem__
def __len__
def resolve
def __repr__

Public Attributes

 resolution
 content
 subset
 application
 stream

Detailed Description

Definition at line 70 of file __init__.py.


Constructor & Destructor Documentation

def DybPython::Catalog::RunSelection::__init__ (   self,
  lhs,
  rhs 
)
Creates an selection. If the second argument in None, then
the first argument is taken to be a single selection. Otherwise
both argments are taken to be instances of this class.

Definition at line 73 of file __init__.py.

00074                                 :
00075         """
00076         Creates an selection. If the second argument in None, then
00077         the first argument is taken to be a single selection. Otherwise
00078         both argments are taken to be instances of this class.
00079         """
00080         self.resolution = None
00081         self.content = []
00082         if (None == rhs):
00083             self.content.append(lhs)
00084         else:
00085             self.content = lhs.content + rhs.content
00086         self.subset = None
00087         self.application = None
00088         self.stream = None
    

Member Function Documentation

def DybPython::Catalog::RunSelection::__add__ (   self,
  others 
)

Definition at line 89 of file __init__.py.

00090                              :
00091         if (self.subset != others.subset) or (self.application != others.application) or (self.stream != others.stream):
00092             raise MismatchException
00093         result = RunSelection(self, others)
00094         result.subset = self.subset
00095         result.application = self.application
00096         result.stream = self.stream
00097         return result

def DybPython::Catalog::RunSelection::__getitem__ (   self,
  item 
)

Definition at line 98 of file __init__.py.

00099                                :
00100         self.resolve()
00101         if isinstance(item, slice):
00102             indices = item.indices(len(self))
00103             return self.resolution[indices[0]:indices[1]:indices[2]]
00104         else:
00105             return self.resolution[item]

def DybPython::Catalog::RunSelection::__len__ (   self)

Definition at line 106 of file __init__.py.

00107                      :
00108         self.resolve()
00109         return len(self.resolution)

def DybPython::Catalog::RunSelection::resolve (   self)

Definition at line 110 of file __init__.py.

00111                      :
00112         if self.resolution:
00113             return
00114 
00115         from dybcatalog_pkg.suds_stubs import getLocationsByRunRanges
00116         self.resolution = getLocationsByRunRanges(self.content,
00117                                                   self.application,
00118                                                   self.stream,
00119                                                   self.subset)

def DybPython::Catalog::RunSelection::__repr__ (   self)

Definition at line 120 of file __init__.py.

00121                       :
00122         try:
00123             self.resolve()
00124         except TypeError as e:
00125             if 'Response is "text/html", not "text/xml"' == e.message:
00126                 raise IOError('Failed to get correct reponse from Web Service')
00127             else:
00128                 raise e
00129         return str(self.resolution)
00130 


Member Data Documentation

Definition at line 77 of file __init__.py.

Definition at line 77 of file __init__.py.

Definition at line 77 of file __init__.py.

Definition at line 77 of file __init__.py.

Definition at line 77 of file __init__.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:40 for DybPython by doxygen 1.7.4