1 28 29 package org.objectweb.openccm.Containers.MetaInformation; 30 31 import org.objectweb.ccm.util.Table; 32 import org.omg.Components.ConnectionDescription; 33 import org.omg.Components.Cookie; 34 35 38 39 public class ReceptaclePortInstanceImpl 40 extends PortInstanceImpl 41 implements ReceptaclePortInstance { 42 43 protected InterfaceInstance _interface_instance; 44 protected int _nb_connexion; 45 protected Table _connexions; 46 47 50 public InterfaceInstance interface_instance() 51 { 52 return _interface_instance; 53 } 54 55 58 public void interface_instance(InterfaceInstance value) 59 { 60 _interface_instance = value; 61 } 62 63 66 public int nb_connexion() 67 { 68 return _nb_connexion; 69 } 70 71 74 public void nb_connexion(int value) 75 { 76 _nb_connexion = value; 77 } 78 79 82 public ConnectionDescription[] connexions() 83 { 84 return (ConnectionDescription[]) _connexions.values().toArray(new ConnectionDescription[0]); 85 } 86 87 90 public void connexions(ConnectionDescription[] value) 91 { 92 } 94 95 98 public void add_connexion_info(ConnectionDescription conn) 99 { 100 _connexions.put(conn.ck, conn); 101 } 102 103 106 public void remove_connexion_info(ConnectionDescription conn) 107 { 108 _connexions.remove(conn.ck); 109 } 110 111 public ConnectionDescription get_connexion(Cookie ck) 112 { 113 return (ConnectionDescription)_connexions.get(ck); 114 } 115 } 116 | Popular Tags |