Adds temporal information to a logical form. Logical form classes that
want to store temporal information should inherit from the approriate
base logical form class and this.
Note that you must inherit from the logical form class as well: just
subclassing this may result in horrible things happening. You should also
call Temporal's init when initializing subclasses.
|
|
__init__(self,
duration=None,
time=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
get_time_list(self)
Returns a list of the time values of the constituents of the logical
form, including non-literal elements if they have times (e.g. |
source code
|
|
|
|
get_path_times(self)
Returns a list of times at which each point on the path occurs,
only if the semantics represents a list of points, or
something that could be converted into one trivially. |
source code
|
|
|
|
set_all_times(self,
time)
Recursively sets the time property on this and all children that can
accept a time value. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
simultaneous(self,
other)
Checks recursively that two logical forms, assumed equal, have the
same timings. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|