void Services.addProvidesPort(Port inPort, string portName, string type, gov.cca.TypeMap properties) { ComponentID cid_inner = frw.getComponentID(mkPortName(portName)); if (!(cid_inner is ManagerIgnoredComponentID)) { gov.cca.Services ws = WorkerServices; ws.addProvidesPort(inPort, portName, type, properties); } frw.addProvidesPort(inPort, mkPortName(portName), type, properties); }
void Services.addProvidesPort(Port inPort, string portName, string type, gov.cca.TypeMap properties) { ComponentID cid_inner = frw.getComponentID(mkPortName(portName)); if (!(cid_inner is ManagerIgnoredComponentID)) { int[] nodes = cid.WorkerNodes; //for (int i=0; i<nodes.Length; i++) foreach (int i in WorkerServices.Keys) { gov.cca.Services ws = WorkerServices[i]; ws.addProvidesPort(inPort, portName, type, properties); } } frw.addProvidesPort(inPort, mkPortName(portName), type, properties); }