Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
e5d67938
Commit
e5d67938
authored
Mar 25, 2019
by
Julian Zobel
Browse files
Started metrics for energy and UAV Net forwarding
parent
a886bf18
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/api/topology/component/ControllableLocationActuator.java
View file @
e5d67938
...
...
@@ -50,6 +50,8 @@ public interface ControllableLocationActuator extends Actuator {
public
PositionVector
getCurrentLocation
();
public
double
getCurrentBatteryLevel
();
public
double
getCurrentBatteryEnergy
();
public
LinkedList
<
PositionVector
>
getTargetLocations
();
...
...
src/de/tud/kom/p2psim/impl/topology/component/UAVTopologyComponent.java
View file @
e5d67938
...
...
@@ -190,6 +190,11 @@ public class UAVTopologyComponent extends AbstractTopologyComponent implements S
public
double
getCurrentBatteryLevel
()
{
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
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment