Diagramme de temps

Un diagramme de temps en UML est un type spécifique de diagramme d'interaction qui visualise les contraintes de temps d' un système. Il se concentre sur l'ordre chronologique des événements, en montrant comment différents objets interagissent les uns avec les autres au fil du temps. Les diagrammes de temps sont particulièrement utiles dans les systèmes en temps réel et les systèmes intégrés pour comprendre le comportement des objets pendant une période donnée.

[Ref. of initial request QA-5383]

Définitions des participants

Les participants sont déclarés à l'aide des mots-clé consise ou robust, en fonction de la façon dont vous souhaitez les dessiner.

Les changements d'état sont notifiés avec la notation @ et le verbe is.

*[Ref. [QA-14631](https:forum.plantuml.net/14631) and [QA-14647](https:forum.plantuml.net/14647)]*

[Ref. QA-14631, QA-14647 and QA-11288]

[Ref. QA-14631, QA-14647, QA-11288 and GH-2409]
WARNING
 This translation need to be updated. 
WARNING

Horloge et signaux binaires

It's also possible to have binary and clock signal, using the following keywords:

Ajout de messages

Vous pouvez rajouter des messages à l'aide de la syntaxe suivante.

WARNING
 This translation need to be updated. 
WARNING

Référence relative de temps

Avec la notation @, il est possible d'utiliser une notation relative du temps.

Points d'ancrage

Au lieu d'utiliser le temps absolu ou relatif sur un temps absolu, vous pouvez définir un temps comme point d'ancrage en utilisant le mot clé as et en commençant le nom par un :

@XX as :<anchor point name>

Anchor Points with decimal offset

[Ref. QA-17885]

Définition participant par participant

Plutôt que de déclarer le diagramme dans l'ordre chronologique, il est possible de le définir participant par participant.

Choix du zoom

Il est possible de choisir une échelle d'affichage précise.

WARNING
 This translation need to be updated. 
WARNING

État initial

Vous pouvez également définir un état initial.

État complexe

Un signal peut se trouver dans un état indéfini

*[Ref. [QA-11936](https:forum.plantuml.net/11936) and [QA-15933](https:forum.plantuml.net/15933)]*
WARNING
 This translation need to be updated. 
WARNING

Hidden state

It is also possible to hide some state.

*[Ref. [QA-12222](https://forum.plantuml.net/12222)]*
WARNING
 This translation need to be updated. 
WARNING

Negative time value

[Ref. QA-7698]

Masquer l'axe du temps

Il est possible de masquer l'axe du temps

Utilisation de l'heure et de la date

Il est possible d'utiliser l'heure ou la date.

*[Ref. [QA-7019](https://forum.plantuml.net/7019/hh-mm-ss-time-format-in-timing-diagram)]*

Change Date Format

It is also possible to change date format.

Manage time axis labels

You can manage the time-axis labels.

Label on each tick (by default)

Manual label (only when the state changes)

[Ref. GH-1020]

Ajout de contraintes

Il est possible d'afficher des contraintes de temps sur les diagrammes.

Période surlignée

Vous pouvez surligner une partie du diagramme

*[Ref. [QA-10868](https://forum.plantuml.net/10868/highlighted-periods-in-timing-diagrams)]*

WARNING
 This translation need to be updated. 
WARNING

Using notes

You can use the note top of and note bottom of keywords to define notes related to a single object or participant (available only for concise or binary object).

[Ref. QA-6877, GH-1465]

Ajout de textes

Vous pouvez ajouter éventuellement un titre, une entête, un pied de page, une légende ou un libellé :

Exemple complet

Merci à Adam Rosien pour cet exemple

Exemple numérique

Ajout de couleur

Vous pouvez ajouter de la couleur

[Réf. QA-5776]

Using (global) style

Without style (by default)

With style

You can use style to change rendering of elements.

[Ref. QA-14340]

Applying Colors to specific lines

You can use the <style> tags and sterotyping to give a name to line attributes.

[Ref. QA-15870]

Compact mode

You can use compact command to compact the timing layout.

By default

Global mode with mode compact

Local mode with only compact on element

[Ref. QA-11130]

Scaling analog signal

You can scale analog signal.

Without scaling: 0-max (by default)

With scaling: min-max

[Ref. QA-17161]

Customise analog signal

Without any customisation (by default)

With customisation (on scale, ticks and height)

[Ref. QA-11288]

Order state of robust signal

Without order (by default)

With order

With order and label

[Ref. QA-6651]

Defining a timing diagram

By Clock (@clk)

By Signal (@S)

By Time (@time)

[Ref. QA-9053]

Annotate signal with comment

[Ref. QA-15762, and QH-888]