TimeRelation

abstract class timespantools.TimeRelation(inequality=None)

A time relation.

Time relations are immutable.

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_timespantools { graph [label=timespantools]; "abjad.tools.timespantools.OffsetTimespanTimeRelation.OffsetTimespanTimeRelation" [color=3, group=2, label=OffsetTimespanTimeRelation, shape=box]; "abjad.tools.timespantools.TimeRelation.TimeRelation" [color=black, fontcolor=white, group=2, label=<<B>TimeRelation</B>>, shape=oval, style="filled, rounded"]; "abjad.tools.timespantools.TimespanTimespanTimeRelation.TimespanTimespanTimeRelation" [color=3, group=2, label=TimespanTimespanTimeRelation, shape=box]; "abjad.tools.timespantools.TimeRelation.TimeRelation" -> "abjad.tools.timespantools.OffsetTimespanTimeRelation.OffsetTimespanTimeRelation"; "abjad.tools.timespantools.TimeRelation.TimeRelation" -> "abjad.tools.timespantools.TimespanTimespanTimeRelation.TimespanTimespanTimeRelation"; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.timespantools.TimeRelation.TimeRelation"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

inequality Time relation inequality.
is_fully_loaded Is true when both time relation terms are not none.
is_fully_unloaded Is true when both time relation terms are none.
__call__() Evaluates time relation.
__eq__(argument) Is true when argument is a equal-valued time relation.
__format__([format_specification]) Formats time relation.
__hash__() Hashes time relation.
__ne__(argument) Is true when Abjad object does not equal argument.
__repr__() Gets interpreter representation of Abjad object.

Read-only properties

TimeRelation.inequality

Time relation inequality.

Return ineqality.

abstract TimeRelation.is_fully_loaded

Is true when both time relation terms are not none. Otherwise false:

Returns true or false.

abstract TimeRelation.is_fully_unloaded

Is true when both time relation terms are none. Otherwise false:

Returns true or false.

Special methods

abstract TimeRelation.__call__()

Evaluates time relation.

Returns true or false.

abstract TimeRelation.__eq__(argument)

Is true when argument is a equal-valued time relation. Otherwise false.

Returns true or false.

TimeRelation.__format__(format_specification='')

Formats time relation.

Returns string.

TimeRelation.__hash__()

Hashes time relation.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Returns integer.

(AbjadObject).__ne__(argument)

Is true when Abjad object does not equal argument. Otherwise false.

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.