Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 24.0
Div
Classe2e-refDiv
Rp

Sometimes it might be useful to transport information available in the preprocessor phase to the postprocessor, e.g. input parameter values. In order to do this, the pre- and postprocessor must share the same context. This is achieved by simply putting pre- and postprocessor in the same class context. To do this create a class containing two operations and assign the pre- and postprocessor to them. Then containment tree of the <<InterceptorModel>> might look like:

Figure: Giving pre- and postproccessor a common context

Image Modified

The class InterceptorContext gives the pre- and postprocessor a common context. That is, each member variable of this class can be accessed in the pre- and postprocessor by using self. For instance, self.someInfo can be set in the preprocessor and then later be used in the postprocessor. For example, see the activity diagram above.

Panel
titleRelated Pages: