use of com.cosylab.acs.maci.ComponentInfo in project ACS by ACS-Community.
the class ComponentCommandClientAdd method execute.
/**
* @see Command#execute(PrevalentSystem)
*/
public Serializable execute(PrevalentSystem system) throws Exception {
ComponentInfo cobInfo = (ComponentInfo) ((ManagerImpl) system).getComponents().get(handle);
cobInfo.getClients().add(clientHandle);
return null;
}
use of com.cosylab.acs.maci.ComponentInfo in project ACS by ACS-Community.
the class ComponentCommandClientRemove method execute.
/**
* @see Command#execute(PrevalentSystem)
*/
public Serializable execute(PrevalentSystem system) throws Exception {
ComponentInfo cobInfo = (ComponentInfo) ((ManagerImpl) system).getComponents().get(handle);
cobInfo.getClients().remove(clientHandle);
return null;
}
use of com.cosylab.acs.maci.ComponentInfo in project ACS by ACS-Community.
the class ComponentInfoCommandComponentAdd method execute.
/**
* @see Command#execute(PrevalentSystem)
*/
public Serializable execute(PrevalentSystem system) throws Exception {
ComponentInfo componentInfo = (ComponentInfo) ((ManagerImpl) system).getComponents().get(hid);
componentInfo.getComponents().add(handle);
return null;
}
use of com.cosylab.acs.maci.ComponentInfo in project ACS by ACS-Community.
the class ComponentInfoCommandComponentRemove method execute.
/**
* @see Command#execute(PrevalentSystem)
*/
public Serializable execute(PrevalentSystem system) throws Exception {
ComponentInfo componentInfo = (ComponentInfo) ((ManagerImpl) system).getComponents().get(hid);
componentInfo.getComponents().remove(handle);
return null;
}
use of com.cosylab.acs.maci.ComponentInfo in project ACS by ACS-Community.
the class ContainerProxy method get_component_info.
/**
* @see com.cosylab.acs.maci.Container#get_component_info(int[])
*/
public ComponentInfo[] get_component_info(int[] handles) throws RemoteException {
try {
// returned value
ComponentInfo[] retVal = null;
// transform to CORBA specific
si.ijs.maci.ComponentInfo[] infos = container.get_component_info(handles);
if (infos != null) {
retVal = new ComponentInfo[infos.length];
for (int i = 0; i < infos.length; i++) {
ComponentInfo componentInfo = new ComponentInfo(infos[i].h, infos[i].name, infos[i].type, infos[i].code, new ComponentProxy(infos[i].name, infos[i].reference));
componentInfo.setContainer(infos[i].container);
componentInfo.setContainerName(infos[i].container_name);
componentInfo.setAccessRights(inverseMapAccessRights(infos[i].access));
componentInfo.setClients(new IntArray(infos[i].clients));
componentInfo.setInterfaces(infos[i].interfaces);
retVal[i] = componentInfo;
}
}
return retVal;
} catch (Exception ex) {
RemoteException re = new RemoteException("Failed to invoke 'get_component_info()' method.", ex);
throw re;
}
}
Aggregations