Using the ISDM interface to RegisterObservers

About this task

The ISDM interface is the CORBA interface used to register the observers with the Security Door Manager. IObserver is the CORBA interface the Security Door Manager uses to communicate with the observers. The class SDM has a relation to the IObserver holding its list of attached observers. The "attach" is implemented by calling the IBM® Rational® Rhapsody®-generated addItsObservers operation. Follow these steps to put these changes into the model:

Procedure

  1. Select the Directed Association icon on the Drawing toolbar. Click the SDM class and then the IObserver class. Type the name itsObservers in the area highlighted on the line.
  2. Right-click the directed association line and select "*" for the Multiplicity in the window. Click OK.
  3. Draw another directed association from ISDM to IObserver without giving the line a name, but select "*" as the Multiplicty, as for the previous association. Your diagram now resembles this example.

Feedback