Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/constraint_window.html
Дата изменения: Fri Apr 8 12:46:14 2016
Дата индексирования: Mon Apr 11 04:44:40 2016
Кодировка:
Python: module constraint_window
 
 
constraint_window (version 7/7/05)
index
constraint_window.py

PURPOSE --
A class for dealing with constraint windows.
 
DEVELOPER --
Don Chance
 
MODIFICATION HISTORY --
Date        Who            What
====        ===            ====
08-25-04    Chance         Initial
03-09-05    Chance         Save the input data dictionary in data
                           parameter.
07-07-05    Chance         Handle -1 second constraint windows
07-16-07    Chance         add new functions for getting full and
                           partial SAA hiding windows.

 
Modules
       
stpydb
time_util
types

 
Classes
       
time_util.window(__builtin__.object)
constraint_window

 
class constraint_window(time_util.window)
    
Method resolution order:
constraint_window
time_util.window
__builtin__.object

Methods defined here:
__init__(self, data={}, data2=None)
get_saa_orbits(self)
get_status(self)
intersection(self, other)
union(self, other)

Methods inherited from time_util.window:
__eq__(self, other)
Test for equality.
__ne__(self, other)
Test for inequality.
__repr__(self)
The string representation of a window.
 
Returned string will appear similar to '1999.200:12:00:00 - 1999.300:12:00:00'
check_other(self, other, func)
Checks that 'other' is a window.
 
Raises -- TypeError - Raised if other is not a window object.
compare(self, other)
Compare window 'self' with window 'other'.
 
- Returns 0 if the two windows have the same start and end.
- Returns -1 if 'self' begins before 'other' or ends before
other if the starts are the same.
- Returns 1 if 'self' begins after 'other' or ends after
'other' if the starts are the same.
complement(self, other=None)
Finds the complement of two windows.  Argument 'other' must be a window.
'other' is assumed to be the window which defines the interval of interest.
'self' is assumed to be the window that intersects the interval of interest.
If 'other' is None, INFINITE_WINDOW is used to define the interval of interest.
Returns a window or list of windows, or 'None' if 'other' and 'self' are
identical.
Raises a TypeError if 'other' is not a window.
contains(self, other)
Returns True if the start of 'other' is greater than or
equal to that of 'self' and the end of 'other' is less
that or equal to the endtime of 'self'.
endtime(self)
Returns the spss_time object for the window end.
first_end(self, other)
Returns the window with the earliest end - 'self' or 'other'.
 
If the ends are the same, it will return 'self'.
first_start(self, other)
Returns the window with the earliest start - 'self' or 'other'.
 
If the starts are the same, it will retrun 'self'.
last_end(self, other)
Returns the window with the latest end - 'self' or 'other'.
 
If the ends are the same, it will return 'other'.
last_start(self, other)
Returns the window with the latest start - 'self' or 'other'.
 
If the starts are the same, it will return 'other'.
overlaps(self, other)
Does window 'self' overlap window 'other'?
 
Returns true if self and other overlap, otherwise returns false.
set_begin_time(self, t)
Set the start time.
set_end_time(self, t)
Set the end time.
size(self)
Returns the difference between the start and end times of the window as a delta time.
starttime(self)
Returns the spss_time object for the window start.

Data descriptors inherited from time_util.window:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
get_full_saa_hiding_windows(cw_list)
Given a list of constraint windows, return those that are
full SAA hiding.
get_partial_saa_hiding_windows(cw_list)
Given a list of constrain windows, return those that are
partial SAA hiding.

 
Data
        __version__ = '7/7/05'