| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DybPython::Catalog::__init__::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

Detailed Description

Definition at line 50 of file __init__.py.


Member Function Documentation

def DybPython::Catalog::__init__::RunSelection::__init__ (   self,
  lhs,
  rhs 
)

Definition at line 53 of file __init__.py.

00053                                 :
00054         """
00055         Creates an selection. If the second argument in None, then
00056         the first argument is taken to be a single selection. Otherwise
00057         both argments are taken to be instances of this class.
00058         """
00059         self.resolution = None
00060         self.content = []
00061         if (None == rhs):
            self.content.append(lhs)

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

Definition at line 62 of file __init__.py.

00063             :
00064             self.content = lhs.content + rhs.content
    

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

Definition at line 65 of file __init__.py.

00066                              :
00067         return RunSelection(self, others)
00068 
00069     def __getitem__(self, item):
00070         self.resolve()
00071         if isinstance(item, slice):
00072             indices = item.indices(len(self))
            return self.resolution[indices[0]:indices[1]:indices[2]]

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

Definition at line 73 of file __init__.py.

00073                                              :indices[1]:indices[2]]
00074         else:
00075             return self.resolution[item]
00076 

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

Definition at line 77 of file __init__.py.

00077                      :
00078         self.resolve()
00079         return len(self.resolution)
00080 
00081     def resolve(self):
00082         if self.resolution:
00083             return
00084 
00085         from CatalogBeanService_services_types import ns0 
00086         ranges = []
00087         for entry in self.content:
00088             range=ns0.runRange_Def('RunRange').pyclass()
00089             range._begin = entry[0]
00090             range._end = entry[1]
00091             # Step is no handled!
00092             ranges.append(range)
00093 
00094         from CatalogBeanService_services import CatalogBeanServiceLocator, CatalogBean_getBinaryFilesByRunRanges
00095         loc = CatalogBeanServiceLocator()
00096         port = loc.getCatalogBean(url)
00097         req = CatalogBean_getBinaryFilesByRunRanges()
00098         req._arg0 = ranges
        self.resolution = []

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

Definition at line 99 of file __init__.py.

00100                                                                :
00101             self.resolution.append(name.encode('utf-8'))
00102 
00103     def __repr__(self):
        self.resolve()


Member Data Documentation

DybPython::Catalog::__init__::RunSelection::resolution

Definition at line 55 of file __init__.py.

DybPython::Catalog::__init__::RunSelection::content

Definition at line 56 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 Mon Apr 11 20:13:00 2011 for DybPython by doxygen 1.4.7