1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 import org.objectweb.openccm.OpenCCM_DCI.*; 30 39 public class AssemblyManagerModelRegistrationSegImpl 40 extends org.objectweb.openccm.OpenCCM_DCI. 41 DCIManagerSessionComposition.AssemblyManagerModelRegistrationSeg 42 { 43 64 70 public org.omg.Components.Cookie 71 register_assembly_manager_model( 72 org.objectweb.openccm.OpenCCM_DCI 73 .AssemblyManagerModel assembly_manager_model) 74 { 75 try{ 76 return 78 ((org.objectweb.openccm 79 .OpenCCM_DCI.DCIManagerCCM)get_context()) 80 .connect_assembly_manager_models(assembly_manager_model) ; 81 } 82 catch(Exception e){e.printStackTrace();} 83 System.err.println("Error occured during assembly manager model connection"); 84 return null; 85 } 86 87 88 93 public void 94 unregister_assembly_manager_model(org.omg.Components.Cookie cookie) 95 throws org.omg.Components.CookieRequired 96 { 97 try{ 98 ((org.objectweb.openccm.OpenCCM_DCI.DCIManagerCCM) 100 get_context()) 101 .disconnect_assembly_manager_models(cookie); 102 } 103 catch(Exception e){ 104 e.printStackTrace(); 105 throw new org.omg.Components.CookieRequired(); 106 } 107 } 108 109 } 110 | Popular Tags |