Aspen Touch Solutions ATM-123R Series Specifikace Strana 131

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 374
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 130
Extensibility 3-47
3-47
The ExtnPropertyPackage interface is not a dual interface; for
efficiency, non-ActiveX Automation compatible data types are
passed as parameters. This means that Extension Property
Packages cannot be easily written in Visual Basic, and cannot be
implemented as Local Servers.
Initialization
When an Extension Property Package is initialized, it must fill in
the ExtensionPPkgInit structure passed to it by its container.
This structure lets the container know which features the
extension supports, such as requirements for a component slate
and whether or not the property package can handle changes to
the component slate order.
An Extension Property Packages can be as simple as a steam
table, or as complex as an activity model or equation of state
package. HYSYS behaves differently for property packages of
differing functionality. For example, if a given property package
cannot handle hypothetical components, you are not allowed
access to the Oil Environment for that property package.
Component Slates
If the Extension Property Packages has a fixed component slate,
HYSYS pre-selects those components, and does not allow the
user to remove them or add other components. The extension
lets its container know of this restriction by setting the
NumberOfPreselectedComponents member of the
ExtensionPPkgInit structure to a non-zero value. HYSYS then
calls the extension's GetPreselectedCompIDs method at a later
point. If zero is passed for the
NumberOfPreselectedComponents member, HYSYS allows you
to select whatever components are available.
Filtering of the component list is done through the
implementation of the IsComponentAllowed method. This
method returns True if the component with the passed
ComponentID is supported by the property package, or False if
it is not. If the extension has a fixed component slate (that is, it
Zobrazit stránku 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 373 374

Komentáře k této Příručce

Žádné komentáře