1 5 package SOFA.SOFAnode.TR.Connector; 6 7 import SOFA.Connector.RoleBaseImpl; 8 import SOFA.SOFAnode.InOut.Bundle; 9 import SOFA.SOFAnode.TR.ComponentInfo; 10 import SOFA.SOFAnode.TR.TR2InOut; 11 import SOFA.SOFAnode.TR.TRException; 12 13 16 public class TR2InOutSRole extends RoleBaseImpl implements CNTR2InOut { 17 private TR2InOut target; 18 19 public void link (Object target) throws SOFA.Connector.LinkException { 20 this.target = (TR2InOut) target; 21 } 22 23 public void storeBundle (Bundle bundle) throws TRException { 24 target.storeBundle(bundle); 25 } 26 27 public Bundle getBundle (ComponentInfo[] descs, ComponentInfo[] comps, boolean inferiors) throws TRException { 28 return target.getBundle(descs, comps, inferiors); 29 } 30 31 public boolean contains (ComponentInfo descrs) { 32 return target.contains(descrs); 33 } 34 35 public Bundle list () { 36 return target.list(); 37 } 38 } 39 | Popular Tags |