forked from HEL/chronos
added synched sequences
This commit is contained in:
Binary file not shown.
@ -48,4 +48,39 @@
|
||||
_seq("Alice", "]", comment: [->\]\ from actor1 *to end*])
|
||||
_seq("Alice", "?", comment: [->?\ *short* from actor1])
|
||||
_seq("Alice", "Bob", comment: [->\ from actor1 to actor2])
|
||||
})
|
||||
|
||||
#chronos.diagram({
|
||||
import chronos: *
|
||||
_par("alice", display-name: "Alice")
|
||||
_par("bob", display-name: "Bob")
|
||||
_par("craig", display-name: "Craig")
|
||||
|
||||
_seq("bob", "alice")
|
||||
_seq("bob", "craig")
|
||||
_gap()
|
||||
|
||||
_sync({
|
||||
_seq("bob", "alice")
|
||||
_seq("bob", "craig")
|
||||
})
|
||||
_gap()
|
||||
|
||||
_seq("alice", "bob")
|
||||
_seq("craig", "bob")
|
||||
_gap()
|
||||
|
||||
_sync({
|
||||
_seq("alice", "bob")
|
||||
_seq("craig", "bob")
|
||||
})
|
||||
_gap()
|
||||
|
||||
_sync({
|
||||
_seq("alice", "bob", enable-dst: true)
|
||||
_seq("craig", "bob")
|
||||
})
|
||||
_gap()
|
||||
|
||||
_evt("bob", "disable")
|
||||
})
|
Reference in New Issue
Block a user