File tree Expand file tree Collapse file tree
sysml/src/validation/03-Function-based Behavior Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments