|
|
|
|
|
|
|
|
|
Inheritance of option values and miscellaneous option utilities
|
|
|
|
|
|
Organization: | University of Notre Dame |
|
|
|
|
|
|
2005-07-14
|
|
|
|
|
|
Often it is necessary to define several related functions which accept similar sets of options. It is useful for such related functions to be able to share the default values for their options, so that a default value set for one can affect all the others as well. The InheritOptions package provides a framework for this, as well as for much more sophisticated possibilities. The InheritOptions package applies the concept of "inheritance", one of the foundations of object oriented programming, to Mathematica's option system. Inheritance is the process by which one object, known as the "child" object, can be automatically assigned some of the properties of another type of object, known as the "parent" object. The InheritOptions package implements a form of inheritance in which a child symbol inherits the default values of options from a parent symbol. The package also provides some general option processing utilities, not directly related to inheritance, including utilities to sort and combine lists of options.
|
|
|
|
|
|
|
|
|
|
|
|
options, inheritance, object oriented programming
|
|
|
|
|
|
| InheritOptionsGuide.pdf (230.6 KB) - PDF Document | | InheritOptions.m (13.2 KB) - Mathematica Package |
|
|
|
|
|
|
|
| | | | | |
|