Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 /**
  * 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);
 }