This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
v070:layout [2018/10/06 00:09] djnemeth [Specifying expected communication between lifelines] |
v070:layout [2018/10/08 09:08] (current) djnemeth [Execution] |
||
---|---|---|---|
Line 195: | Line 195: | ||
==== General structure ==== | ==== General structure ==== | ||
- | A sequence diagram description is a Java class inheriting from class ''SequenceDiagram''. | + | A sequence diagram description is a Java class inheriting from class [[http://txtuml.inf.elte.hu/releases/txtuml-v070/api/java/hu/elte/txtuml/api/model/seqdiag/SequenceDiagram.html|SequenceDiagram]]. |
Lifelines can be defined as class members in a diagram description. To give an ordering between them on the generated diagram, the ''Position'' annotation can be used. | Lifelines can be defined as class members in a diagram description. To give an ordering between them on the generated diagram, the ''Position'' annotation can be used. | ||
Line 240: | Line 240: | ||
==== Execution ==== | ==== Execution ==== | ||
- | The execution of the diagram can be configured by setting the execution mode. For this purpose, the ''ExecutionMode'' annotation of the ''run'' method can be used. | + | The execution of the diagram can be configured by setting the execution mode. For this purpose, the ''ExecutionMode'' annotation can be used on the ''run'' method . |
- | Regardless of the chosen mode, the entire messaging defined in ''run'' should happen in the model during the execution. ''ExecMode.STRICT'' does not allow any other communication, while ''ExecMode.LENIENT'' does. | + | Regardless of the chosen mode, the entire messaging defined in ''run'' should occur in the model during the execution. ''ExecMode.STRICT'' does not allow any other communication, while ''ExecMode.LENIENT'' does. |
=== Condition evaluation during execution === | === Condition evaluation during execution === |