| |
- 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)
|