Skip to content

Commit 467b196

Browse files
committed
ST6RI-669 Resolved TODO in 3c-Function-based Behavior-structure mod-1.
1 parent 5b329ce commit 467b196

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

sysml/src/validation/03-Function-based Behavior/3c-Function-based Behavior-structure mod-1.sysml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,19 @@ package '3c-Function-based Behavior-structure mod-1' {
3131
}
3232
}
3333

34-
perform action {
34+
action {
3535
// Create a link and assign it as the TrailerHitch connection.
3636
// Link participants are determined from inherited ends.
3737
action 'connect trailer to vehicle'
3838
assign 'vehicle-trailer system'.trailerHitch := TrailerHitch();
3939

40+
// Destroy the link object.
41+
then action 'destroy connection of trailer to vehicle' :
42+
OccurrenceFunctions::destroy {
43+
:>> occ = 'vehicle-trailer system'.trailerHitch;
44+
}
45+
4046
// Remove the link from the TrailerHitch connection.
41-
// TODO: Destroy the link object.
4247
then action 'disconnect trailer from vehicle'
4348
assign 'vehicle-trailer system'.trailerHitch := null;
4449
}

0 commit comments

Comments
 (0)