Skip to main content

Check our latest tool upgrades: WebSpec-js and FViewer.

Important

Spectral model data files are now distributed separately from HEASoft. After installing HEASoft 6.37+, you must download the model data files separately using ftgetmodeldata in order to use those models. See the spectral model data files page for details.


Design Patterns and XSPEC
Redesign Home Design Patterns Coding Idioms Classes
Creational

Structural

Behavioral

Design patterns can be thought of as software architectural features that solve particular engineering problems. The standard work on the subject, Design Patterns (Gamma, Helm, Johnson & Vlissides (sometimes referred to as the Gang of Four) 1994) lists 23 separate patterns divided into Creational, Structural and Behavioral patterns. XSPEC12 uses about ten of them. We describe briefly below what specific use each pattern has  and the issue within XSPEC12 that it addresses. We follow the definition of a pattern given in Gamma et al. with concrete examples from our code.



[Redesign Home]
[Design]
[Problem]
[Scripting]
[Compatibility]