next up previous
Next: 4.1 Completing the generated Up: Systems Management with Distributed Previous: 3.2.5 New types for

4 Implementing the optimized object model in CORBA

 

As the CASE-tool provides a mapping from OMT to OMG IDL, the object interface descriptions can be generated automatically. The listing below gives an idea of this mapping by showing the IDL descriptions of the System object class.


 

 
Table 1: IDL interface description of the System object class (extract)
{...}  
// stp class definition 108  
interface System  
{  
// stp class members  
attribute string Contact; // simple read-
attribute date Date; // and writable
attribute string Hardware; // attributes
attribute string Location;  
attribute string Name;  
readonly attribute string Os; // read-only
readonly attribute time Uptime; // attributes
readonly attribute long maxProcessNumber;  
readonly attribute long maxProcessSize;  
attribute sequence<Printer> assnPrinter; // 1:n association
attribute Process assnProcess; // simple assoc.
attribute sequence<Processor> aggrProcessor; // 1:n aggregation
...  
};  


One can easily see that attribute properties (like read-only) and their data types defined in the OMT model are transformed into their IDL equivalents. The bottom of the listing contains the definitions of the relationships between different object classes; in this case, information contained in the OMT model is lost by the transformation into OMG IDL.



 
next up previous
Next: 4.1 Completing the generated Up: Systems Management with Distributed Previous: 3.2.5 New types for
Copyright Munich Network Management Team