1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 import org.objectweb.openccm.OpenCCM_DCI.*; 30 31 39 40 public class DCIInformationSegImpl 41 extends org.objectweb.openccm 42 .OpenCCM_DCI.DCIManagerSessionComposition 43 .DCIInformationSeg 44 { 45 51 private org.objectweb.openccm.OpenCCM_DCI.DCIManagerCCM DCI; 52 53 59 65 71 public void setupDCI() 72 { 73 DCI=(org.objectweb.openccm.OpenCCM_DCI.DCIManagerCCM)get_context(); 74 } 75 76 90 public org.ist.coach.DCI.NodeManager 91 get_node_manager(String node_name) 92 throws org.omg.Components.InvalidName 93 { 94 org.objectweb.openccm.OpenCCM_DCI. 95 DCIManagerPackage.node_managersConnection 96 connect[]=DCI.get_connections_node_managers(); 97 98 for(int i=0;i<connect.length;i++) 99 if(connect[i].objref.node_name().equals(node_name)) 100 return connect[i].objref ; 101 102 throw new org.omg.Components.InvalidName(); 103 } 104 105 110 public org.ist.coach.DCI.NodeManager[] 111 get_node_managers() 112 { 113 org.objectweb.openccm.OpenCCM_DCI. 114 DCIManagerPackage.node_managersConnection 115 connect[]=DCI.get_connections_node_managers(); 116 117 org.ist.coach.DCI.NodeManager[] nodes= 118 new org.ist.coach.DCI.NodeManager[connect.length]; 119 120 for(int i=0;i<connect.length;i++) 121 nodes[i]=connect[i].objref; 122 123 return nodes; 124 } 125 126 134 public org.ist.coach.DCI.DCIDescriptor[] 135 get_dci_properties() 136 { 137 throw new org.omg.CORBA.NO_IMPLEMENT (); 139 } 140 141 149 public org.ist.coach.DCI.DCIDescriptor[] 150 get_node_properties(String nodeName) 151 { 152 try 153 { 154 return get_node_manager(nodeName) 155 .provide_node_information() 156 .get_node_properties(); 157 } 158 catch(org.omg.Components.InvalidName exc) 159 { 160 exc.printStackTrace(System.err); 162 throw new org.omg.CORBA.BAD_PARAM (); 163 } 164 } 165 166 } 167 | Popular Tags |