The sigsUp function with OptionsPattern modelled as a SysML Activity (and with "pseudo functional" representation)

Gallery
Tutorial
This content has been marked as discussing an ADVANCED topic!
Click on the image to view it full size

This example is from the Webel HelpF` package, which is examined in detail in later slides. The function sigsUp retrieves formatted information on UpValues for a function Symbol 'f'. The Private` helper function z$sigsUD (where Private` is indicated by convention using a 'z$' prefix) can provide information on either UpValues or DownValues, depending on the injected 'fStringsUD' Symbol.

The example shows both regular arguments (in this example including some optional arguments with defaults, so multiplicity [0..1]) and an OptionsPattern[] as a Parameter with the custom Stereotype keyword «M:OptionsPattern».

Options can be represented easily in SysML, and we'll see later how to unpack the OptionsPattern[].

Note also the use of the custom Stereotype keyword «functional» to indicate a pseudo functional representation in SysML. There are limits to how well one can represent functional programming in SysML, but the basic idea of "injection" of a function Symbol can be captured in an informative way.

For reference, some associated Policy Notes (you don't need to visit these links yet):
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)