/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
Scraper::daq::daqdb_extractor::RunInfo Class Reference

List of all members.

Public Member Functions

def __init__
def Print
def Clear
def IsGood
def Validate

Public Attributes

 info

Detailed Description

for run information 

Definition at line 153 of file daqdb_extractor.py.


Constructor & Destructor Documentation

def Scraper::daq::daqdb_extractor::RunInfo::__init__ (   self)

Definition at line 155 of file daqdb_extractor.py.

00156                      :
00157      self.info = { }
 

Member Function Documentation

def Scraper::daq::daqdb_extractor::RunInfo::Print (   self)

Definition at line 158 of file daqdb_extractor.py.

00159                   :
00160       print "===>>> RunInfo"
00161       for k, v in self.info.iteritems():
00162          print "   ", k, "=", v

def Scraper::daq::daqdb_extractor::RunInfo::Clear (   self)
clear self.info 

Definition at line 163 of file daqdb_extractor.py.

00164                   :
00165       """ clear self.info """
00166       self.info.clear()

def Scraper::daq::daqdb_extractor::RunInfo::IsGood (   self)
check goodness of run 

Definition at line 167 of file daqdb_extractor.py.

00168                    :
00169       """ check goodness of run """
00170       if len(self.info) > 0:
00171          return True
00172       else:
00173          return False

def Scraper::daq::daqdb_extractor::RunInfo::Validate (   self)
prepare for DBI ...Vld table 

Definition at line 174 of file daqdb_extractor.py.

00175                      :
00176       """ prepare for DBI ...Vld table """
00177       # time
00178       duration = timedelta(seconds = self.info['duration'])
00179       #print type(self.info['timeStart']), self.info['timeStart'] - duration
00180       self.info['timeEnd'] = self.info['timeStart'] + duration
00181 
00182       """ Convert timezone, from Beijing time to UTC time"""
00183       self.info['timeStart'] = self.info['timeStart'] + timedelta(seconds=time.timezone)
00184       self.info['timeEnd'] = self.info['timeEnd'] + timedelta(seconds=time.timezone)
00185 
00186       #todo: sitemask
00187 
00188       #todo: simmask
00189 
00190       #todo: subsite
00191 
00192       #to-be-fixed
00193 
00194       self.info['insertDate'] = datetime.now() + timedelta(seconds=time.timezone)


Member Data Documentation

Definition at line 155 of file daqdb_extractor.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:50:03 for Scraper by doxygen 1.7.4