/** * Get the instance of the component with the specified id name. * * @param id Name of component's instance (for example "avoider") * @return The component */ public static Component getComponentById(String id) { return GlobalFactory.getComponentById(id); }
/** * Get a list of component of the same device type. * * @param type Type of device (for example "devices.Motor") * @return A list with component of specified type. */ public static ArrayList<Component> getComponentsByType(String type) { return GlobalFactory.getComponentsByType(type); }