Gallery Tutorial [TECHNICAL SLIDE TRAIL] The Webel libraries for Wolfram Mathematica: With SysMLv1 models. Section SECTION: The Webel '$opt$' and '$arg$' help holder conventions for options and arguments in the Wolfram Language Tags and keywords Mathematica keywords Association MTools MTools::Class ExpressionTree Rule newArg MArg.asRule MAll.methodsTree MAll.helpFields MAll.asAssoc Webel Mathematica keywords help holder '$arg$' 'rule$arg$' MArg Keywords Wolfram Wolfram Language Mathematica Webel IT Australia Click on the image to view it full size Up next Webel ‘$opt$’ help is much easier with the MOpt class using MTools! Notes [NAMING, PATTERN, POLICY]{STRICT} Webel: Mathematica: CONVENTION: Argument help holders use a String variable with the prefix '$arg$', a related '$info$arg$' String, a 'def$arg$' default value expression and/or 'req$arg$', and optional '$warn$arg$', '$tip$arg$, '$lab$arg$', 'type$arg$'.. [TIP]{INFORMATIVE} Mathematica: TIPS for living with the user-contributed MTools for Object-Orientation (until a vendor-supported OO solution is eventually provided) [PATTERN, TIP, TOOL]{INFORMATIVE} Webel + Mathematica + MTools + SysML Snippets (quotes/extracts) Visit also The Webel SysML4Mathematica recipe for modelling Wolfram Language code in Systems Modeling Language (SysML) for Model-Based Systems Engineering Visit also (backlinks) Related slides (includes other tutorials) The Webel '$opt$', 'rule$opt$', '$arg$', 'rule$arg$' and supporting '$k$' conventions for "help holders" Webel ‘$arg$’, ‘def$arg$’, and ‘rule$arg$’ convention Related slides (backlinks, includes other tutorials) HelpM`: Use Webel MOpt and MArg objects to create ‘$doc$’ Strings for ::usage help The Webel W`Moo` package group: Additional utilities for the user-contributed MTools paclet for classes & object orientation Deployment folders for projects that depend on W`Base` and MTools OO (as SysML) HelpO`: addMethod: MTools method registration example for the Webel MAll class and an object HelpM`: Using the MFunction and MMethod helper classes with MArg & MOpt HelpM`: Using the Webel MMethod class and MArg & MOpt with HelpO` HelpM`: Using the Webel MFunction class and MArg & MOpt with HelpF` HelpM`: Use MFunction and MMethod with MArg & MOpt for ::usage (and consistent with the HelpF` and HelpO` registries) HelpM`: Using the Webel MClass helper with the MMethod helper and the HelpO` help registry Incremental benefit through Doc`, Var`, HelpF`, HelpO`, HelpM` HelpM`: Using the Webel MPackage helper with MFunction and MClass and the HelpF` and HelpO` help registries SysML: OptionsPattern[] “Generalizations” using Join:" Example: HelpM` helper classes new functions The AOR Map (Arguments, Options, Rules): Integrated ::usage, HelpF`/HelpO` registration, and Options[] (without MTools) The AOR Map (Attributes, Options, Rules) Association: Example: aor$f$helpClass The AOR Map as SysML Blocks with Rules Flags Book traversal links for Webel ‘$arg$’ help is much easier with the MArg class using MTools! Previous Up Next