
Extensibility 3-5
3-5
3.2 Implementing
Interfaces
An extension implements an interface if it supports the methods
in that interface. There are two different ways of implementing
an interface.
3.2.1 Implementing an
Interface Through a
Dispatch Interface
An extension can implement interfaces through Dispatch
interfaces. This can be done in Visual Basic if the extension is
implemented as a Visual Basic Class.
When an extension is implemented in this manner, only the
methods of the interface that are required for minimal operation
of the extension need be used. All other methods may be
ignored, or they can be provided if the extension implements
that functionality.
For example, an extension Unit Operation can be implemented
by supporting only the Initialize and Execute methods. The
BasisChanged method need only be implemented if the
extension needs to be notified when the Basis of the simulation
has changed.
Comentários a estes Manuais