Previous Table of Contents Next


5.2.6.2 IDL


   //File: DAISAESource.idl #ifndef __DAIS_AESOURCE_IDL #define __DAIS_AESOURCE_IDL #pragma prefix "omg.org" #include <DAISNode.idl> #include <DAISAECommon.idl>

   module DAIS { module AlarmsAndEvents { module Source {

   interface IHome : Node::IHome { exception PropertyDidNotTranslate{string reason;};

   ItemIDs translate_to_item_ids (in ResourceID source,in ResourceID category,in PropertyIDs properties

   ) raises (PropertyDidNotTranslate);

   ResourceErrors enable_conditions (in ResourceIDs sources);

   ResourceErrors disable_conditions (in ResourceIDs sources

   ); };};};}; #endif // __DAIS_AESOURCE_IDL

   IHome

   An object for browsing sources at areas.

   PropertyDidNotTranslate

   An exception telling that one or more properties did not translate to ItemIDs.

   translate_to_item_ids()

   A method for translation of information about a source to ItemIDs for use with the data access interface. If one or more properties did not translate to ItemIDs, an exception is raised. The corresponding OPC method is IOPCEventServer::TranslateToItemIDs().

Member Description
source The identification of the source.
category The identification of the category.
properties A sequence of properties for which ItemIDs are wanted.
return A sequence of ItemIDs. Properties that did not translate to ItemIDs are returned as empty ItemIDs.

   enable_conditions()

   A method for enabling the specified sources. The corresponding OPC method is IOPCEventServer::EnableConditionBySource().

Member

Description

sources A sequence of area identifications.
return The resource identifications that failed.

   disable_conditions()

   A method for disabling specified sources. The corresponding OPC method is IOPCEventServer::DisableConditionBySource().

Member

Description

sources A sequence of area identifications.
return The resource identifications that failed.

   Browse sources


   Figure 5-11 Browse sources interaction