send-action-parameters
Available in: SysML
This checks that send actions have a payload and sender.
Note that receiver at least for now is optional to match the description of
Actions::SendAction:
A SendAction is an Action used to type SendActionUsages. It initiates an outgoingTransferFromSelf from a designated sender Occurrence with a given payload, optionally to a designated receiver.
Specification
A
SendActionUsagemust have at least three ownedinputparameters, corresponding to itspayload,senderandreceiver, respectively (whether or not they haveFeatureValues).
Example
action {
send; // error
}
Add a payload, and either a sender, or receiver:
occurrence r;
action {
send 4 to r; // ok
}
The missing sender or receiver is constructed as an empty element automatically.