Observer-Conditioned-Observable Design Pattern

Douglas A. Lyon, Carl Weiman

Research output: Contribution to journalArticlepeer-review

Abstract

Interactive programs use multiple viewers and controllers to alter an underlying numeric model. These can update each other in an observer-observable loop that can propagate unintended and unmanaged digitization errors. The OCO design pattern breaks the loop and maintains control of the numerical values. The interception of changes is done via a modification of the equals method. If two numbers are equal (to within a user defined tolerance) propagation is suppressed. Thus, the digitizer re-samples and re-quantizes the numeric event. Lazy instantiation is not new, nor, for that matter, is the singleton design pattern. However, parametric lazy instantiation is new and so is the parametric singleton.

Original languageAmerican English
JournalJournal of Object Technology
Volume6
DOIs
StatePublished - May 1 2007

Disciplines

  • Computer Engineering
  • Engineering

Cite this