timespans

Tools for modeling “timespans”.

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=1]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/timespans/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/timespans/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } subgraph "cluster_abjad.timespans" { graph [label="abjad.timespans"]; node [color=2]; "abjad.timespans.AnnotatedTimespan.AnnotatedTimespan" [URL="../api/abjad/timespans/AnnotatedTimespan.html#abjad.timespans.AnnotatedTimespan.AnnotatedTimespan", color=black, fontcolor=white, label="Annotated\nTimespan", target=_top]; "abjad.timespans.CompoundInequality.CompoundInequality" [URL="../api/abjad/timespans/CompoundInequality.html#abjad.timespans.CompoundInequality.CompoundInequality", color=black, fontcolor=white, label="Compound\nInequality", target=_top]; "abjad.timespans.OffsetTimespanTimeRelation.OffsetTimespanTimeRelation" [URL="../api/abjad/timespans/OffsetTimespanTimeRelation.html#abjad.timespans.OffsetTimespanTimeRelation.OffsetTimespanTimeRelation", color=black, fontcolor=white, label="Offset\nTimespan\nTime\nRelation", target=_top]; "abjad.timespans.TimeRelation.TimeRelation" [URL="../api/abjad/timespans/TimeRelation.html#abjad.timespans.TimeRelation.TimeRelation", color=black, fontcolor=white, label="Time\nRelation", shape=oval, style="bold, filled", target=_top]; "abjad.timespans.Timespan.Timespan" [URL="../api/abjad/timespans/Timespan.html#abjad.timespans.Timespan.Timespan", color=black, fontcolor=white, label=Timespan, target=_top]; "abjad.timespans.TimespanInequality.TimespanInequality" [URL="../api/abjad/timespans/TimespanInequality.html#abjad.timespans.TimespanInequality.TimespanInequality", color=black, fontcolor=white, label="Timespan\nInequality", target=_top]; "abjad.timespans.TimespanList.TimespanList" [URL="../api/abjad/timespans/TimespanList.html#abjad.timespans.TimespanList.TimespanList", color=black, fontcolor=white, label="Timespan\nList", target=_top]; "abjad.timespans.TimespanTimespanTimeRelation.TimespanTimespanTimeRelation" [URL="../api/abjad/timespans/TimespanTimespanTimeRelation.html#abjad.timespans.TimespanTimespanTimeRelation.TimespanTimespanTimeRelation", color=black, fontcolor=white, label="Timespan\nTimespan\nTime\nRelation", target=_top]; "abjad.timespans.TimeRelation.TimeRelation" -> "abjad.timespans.OffsetTimespanTimeRelation.OffsetTimespanTimeRelation"; "abjad.timespans.TimeRelation.TimeRelation" -> "abjad.timespans.TimespanTimespanTimeRelation.TimespanTimespanTimeRelation"; "abjad.timespans.Timespan.Timespan" -> "abjad.timespans.AnnotatedTimespan.AnnotatedTimespan"; } subgraph "cluster_abjad.utilities" { graph [label="abjad.utilities"]; node [color=3]; "abjad.utilities.TypedCollection.TypedCollection" [URL="../api/abjad/timespans/../utilities/TypedCollection.html#abjad.utilities.TypedCollection.TypedCollection", label="Typed\nCollection", shape=oval, style=bold, target=_top]; "abjad.utilities.TypedList.TypedList" [URL="../api/abjad/timespans/../utilities/TypedList.html#abjad.utilities.TypedList.TypedList", label="Typed\nList", target=_top]; "abjad.utilities.TypedCollection.TypedCollection" -> "abjad.utilities.TypedList.TypedList"; } subgraph cluster_builtins { graph [label=builtins]; node [color=4]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_collections.abc" { graph [label="collections.abc"]; node [color=5]; "collections.abc.Collection" [URL="https://docs.python.org/3.6/library/collections.abc.html#collections.abc.Collection", label=Collection, shape=oval, style=bold, target=_top]; "collections.abc.Container" [URL="https://docs.python.org/3.6/library/collections.abc.html#collections.abc.Container", label=Container, shape=oval, style=bold, target=_top]; "collections.abc.Iterable" [URL="https://docs.python.org/3.6/library/collections.abc.html#collections.abc.Iterable", label=Iterable, shape=oval, style=bold, target=_top]; "collections.abc.MutableSequence" [URL="https://docs.python.org/3.6/library/collections.abc.html#collections.abc.MutableSequence", label="Mutable\nSequence", shape=oval, style=bold, target=_top]; "collections.abc.Reversible" [URL="https://docs.python.org/3.6/library/collections.abc.html#collections.abc.Reversible", label=Reversible, shape=oval, style=bold, target=_top]; "collections.abc.Sequence" [URL="https://docs.python.org/3.6/library/collections.abc.html#collections.abc.Sequence", label=Sequence, shape=oval, style=bold, target=_top]; "collections.abc.Sized" [URL="https://docs.python.org/3.6/library/collections.abc.html#collections.abc.Sized", label=Sized, shape=oval, style=bold, target=_top]; "collections.abc.Collection" -> "collections.abc.Sequence"; "collections.abc.Container" -> "collections.abc.Collection"; "collections.abc.Iterable" -> "collections.abc.Collection"; "collections.abc.Iterable" -> "collections.abc.Reversible"; "collections.abc.Reversible" -> "collections.abc.Sequence"; "collections.abc.Sequence" -> "collections.abc.MutableSequence"; "collections.abc.Sized" -> "collections.abc.Collection"; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.timespans.TimespanInequality.TimespanInequality"; "abjad.system.AbjadObject.AbjadObject" -> "abjad.utilities.TypedCollection.TypedCollection"; "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.timespans.TimeRelation.TimeRelation"; "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.timespans.Timespan.Timespan"; "abjad.utilities.TypedList.TypedList" -> "abjad.timespans.CompoundInequality.CompoundInequality"; "abjad.utilities.TypedList.TypedList" -> "abjad.timespans.TimespanList.TimespanList"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; "builtins.object" -> "collections.abc.Container"; "builtins.object" -> "collections.abc.Iterable"; "builtins.object" -> "collections.abc.Sized"; "collections.abc.MutableSequence" -> "abjad.utilities.TypedList.TypedList"; }


Functions

offset_happens_after_timespan_starts Makes time relation indicating that offset happens after timespan starts.
offset_happens_after_timespan_stops Makes time relation indicating that offset happens after timespan stops.
offset_happens_before_timespan_starts Makes time relation indicating that offset happens before timespan starts.
offset_happens_before_timespan_stops Makes time relation indicating that offset happens before timespan stops.
offset_happens_during_timespan Makes time relation indicating that offset happens during timespan.
offset_happens_when_timespan_starts Makes time relation indicating that offset happens when timespan starts.
offset_happens_when_timespan_stops Makes time relation indicating that offset happens when timespan stops.
timespan_2_contains_timespan_1_improperly Makes time relation indicating that timespan_2 contains timespan_1 improperly.
timespan_2_curtails_timespan_1 Makes time relation indicating that timespan_2 curtails timespan_1.
timespan_2_delays_timespan_1 Makes time relation indicating that timespan_2 delays timespan_1.
timespan_2_happens_during_timespan_1 Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_intersects_timespan_1 Makes time relation indicating that timespan_2 intersects timespan_1.
timespan_2_is_congruent_to_timespan_1 Makes time relation indicating that timespan_2 is congruent to timespan_1.
timespan_2_overlaps_all_of_timespan_1 Makes time relation indicating that timespan_2 overlaps all of timespan_1.
timespan_2_overlaps_only_start_of_timespan_1 Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_overlaps_only_stop_of_timespan_1 Makes time relation indicating that timespan_2 overlaps only stop of timespan_1.
timespan_2_overlaps_start_of_timespan_1 Makes time relation indicating that timespan_2 overlaps start of timespan_1.
timespan_2_overlaps_stop_of_timespan_1 Make time relation indicating that timespan_2 overlaps stop of timespan_1.
timespan_2_starts_after_timespan_1_starts Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_starts_after_timespan_1_stops Makes time relation indicating that timespan_2 starts after timespan_1 stops.
timespan_2_starts_before_timespan_1_starts Makes time relation indicating that timespan_2 starts before timespan_1 starts.
timespan_2_starts_before_timespan_1_stops Makes time relation indicating that timespan_2 starts before timespan_1 stops.
timespan_2_starts_during_timespan_1 Makes time relation indicating that timespan_2 starts during timespan_1.
timespan_2_starts_when_timespan_1_starts Makes time relation indicating that timespan_2 starts when timespan_1 starts.
timespan_2_starts_when_timespan_1_stops Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_stops_after_timespan_1_starts Makes time relation indicating that timespan_2 stops after timespan_1 starts.
timespan_2_stops_after_timespan_1_stops Makes time relation indicating that timespan_2 stops after timespan_1 stops.
timespan_2_stops_before_timespan_1_starts Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_stops_before_timespan_1_stops Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_stops_during_timespan_1 Makes time relation indicating that timespan_2 stops during timespan_1.
timespan_2_stops_when_timespan_1_starts Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_stops_when_timespan_1_stops Makes time relation indicating that timespan_2 happens during timespan_1.
timespan_2_trisects_timespan_1 Makes time relation indicating that timespan_2 trisects timespan_1.

Time relations

CompoundInequality Compound time-relation inequality.
OffsetTimespanTimeRelation Offfset vs.
TimeRelation Time relation.
TimespanInequality Timespan inequality.
TimespanTimespanTimeRelation Timespan vs.

Timespans

AnnotatedTimespan Annotated timespan.
Timespan Timespan.
TimespanList Timespan list.