1 26 27 package org.objectweb.ccm.filetransfer.cif; 28 29 import org.objectweb.ccm.filetransfer.*; 30 31 32 43 44 public class ChannelImpl 45 extends org.objectweb.ccm.filetransfer.ChannelSessionComposition.ComponentImpl { 46 52 53 private String name_; 54 55 56 57 63 64 public ChannelImpl() { 65 66 } 67 68 74 80 86 92 public void configuration_complete() 93 throws org.omg.Components.InvalidConfiguration { 94 if (name_ == null) 96 throw new org.omg.Components.InvalidConfiguration(); 97 98 } 99 100 106 111 public void ccm_remove() throws org.omg.Components.CCMException { 112 114 } 115 116 122 127 public void the_name(String n) { 128 name_ = n; 129 130 131 132 } 133 134 139 public String the_name() { 140 return name_; 141 } 142 143 149 154 public void push(Images event) { 155 156 157 158 System.out.println(event.filename + " received from Prog component, sending to TV component"); 160 get_context().push_to_tvs( 161 new ImagesImpl(event.datafile, event.filename)); 162 163 164 165 } 166 167 } 168 | Popular Tags |