1 26 27 package DiningPhilosophers.explorer; 28 29 import DiningPhilosophers.*; 30 import org.omg.Components.EventBase; 31 import org.omg.Components.BadEventType; 32 33 42 public class StatusInfoConsumerImpl 43 extends StatusInfoConsumerPOA 44 { 45 51 52 protected DiningPhilosophers.cif.PhilosopherPanel panel_ = null; 53 54 60 64 public StatusInfoConsumerImpl(DiningPhilosophers.cif.PhilosopherPanel panel){ 65 panel_ = panel; 66 } 67 68 74 80 public void 81 push_event(EventBase evt) 82 throws BadEventType 83 { 84 } 86 87 93 99 public void 100 push_StatusInfo(StatusInfo the_statusinfo) 101 { 102 if(panel_!=null) 103 panel_.updatePanel(the_statusinfo); 104 } 105 106 } | Popular Tags |