Commit e5d67938 authored by Julian Zobel's avatar Julian Zobel
Browse files

Started metrics for energy and UAV Net forwarding

parent a886bf18
......@@ -51,6 +51,8 @@ public interface ControllableLocationActuator extends Actuator {
public double getCurrentBatteryLevel();
public double getCurrentBatteryEnergy();
public LinkedList<PositionVector> getTargetLocations();
public void setTargetLocation(PositionVector targetLocation, ReachedLocationCallback cb);
......
......@@ -191,6 +191,11 @@ public class UAVTopologyComponent extends AbstractTopologyComponent implements S
return battery.getCurrentPercentage();
}
@Override
public double getCurrentBatteryEnergy() {
return battery.getCurrentEnergyLevel();
}
public RechargeableBattery getBattery() {
return battery;
}
......@@ -326,4 +331,6 @@ public class UAVTopologyComponent extends AbstractTopologyComponent implements S
net.goOnline();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment