public List<Sensor> findRemovedSensors() { return sensorEJB.findRemovedSensors(); }
public List<Sensor> getSensors() { return sensorEJB.findSensors(); }
public void reaffectSensorToDrone(Drone drone, Long sensorId) throws ParseException { sensorEJB.reaffectSensor(drone, sensorId); }
public List<Sensor> getSensorsById(Long id) { return sensorEJB.findSensorsById(id); }
public void addSensorToDrone(Drone drone) throws ParseException { sensorEJB.createSensor( Integer.parseInt(typeSensor), name, model, inServiceDate, Float.parseFloat(price), drone); }