1 5 package SOFA.SOFAnode.InOut.Connector; 6 7 import SOFA.Connector.RoleBaseImpl; 8 import SOFA.SOFAnode.InOut.Bundle; 9 import SOFA.SOFAnode.InOut.InOut2Client; 10 import SOFA.SOFAnode.InOut.InOutException; 11 12 15 public class InOut2ClientSRole extends RoleBaseImpl implements CNInOut2Client { 16 InOut2Client target; 17 18 public void link (Object target) throws SOFA.Connector.LinkException { 19 this.target = (InOut2Client) target; 20 } 21 22 23 32 33 34 public void obtain (String [] offers, String [] components, String sofaNode) throws InOutException { 35 target.obtain(offers, components, sofaNode); 36 } 37 38 public void distribute (String [] offers, String [] components, String [] sofaNodes) throws InOutException { 39 target.distribute(offers, components, sofaNodes); 40 } 41 42 public void obtainOffers (String [] offers, String sofaNode) throws InOutException { 43 target.obtainOffers(offers, sofaNode); 44 } 45 46 public void distributeOffers (String [] offers, String [] sofaNodes) throws InOutException { 47 target.distributeOffers(offers, sofaNodes); 48 } 49 50 public void obtainComponents (String [] components, String sofaNode) throws InOutException { 51 target.obtainComponents(components, sofaNode); 52 } 53 54 public void distributeComponents (String [] components, String [] sofaNodes) throws InOutException { 55 target.distributeComponents(components, sofaNodes); 56 } 57 58 public Bundle list () throws InOutException { 59 return target.list(); 60 } 61 } 62 | Popular Tags |