1 26 27 package DiningPhilosophers.explorer; 28 29 import org.objectweb.openccm.explorer.Components.HomeContext; 30 import org.omg.Components.CCMObject; 31 import DiningPhilosophers.Philosopher; 32 import DiningPhilosophers.PhilosopherHelper; 33 34 40 public class PhilosopherHomeContext 41 extends HomeContext 42 { 43 44 protected String getName(CCMObject o) { 45 Philosopher p = PhilosopherHelper.narrow(o); 46 return p.name(); 47 } 48 49 } 50 | Popular Tags |