public interface IEnergyProfile
Modifier and Type | Method and Description |
---|---|
long |
getCurrentEnergyLevel() |
IEnergyConsumptionProfile |
getGlobalEnergyConsumptionProfile() |
long |
getMaxEnergyLevel() |
long |
getMinEnergyLevel() |
String |
getName() |
long |
getPowerRate() |
long |
getStartEnergyLevel() |
long |
howLongCanExecute(ITask... tasks) |
long |
howLongCanExecute(Iterable<ITask> tasks) |
long |
howLongCanExecute(long maxEnergyToConsume,
ITask... tasks) |
long |
howLongCanExecute(long maxEnergyToConsume,
Iterable<ITask> tasks) |
long |
howMuchCanRecharge(long duration) |
boolean |
isGolobalConsumptionProfile() |
IEnergyProfile |
newInstance(int... params) |
void |
reset() |
void |
setGlobalEnergyConsumptionProfile(IEnergyConsumptionProfile p) |
void |
setGolobalConsumptionProfileEnabled(boolean bool) |
void |
updateEnergy(long duration,
long consumption,
long date) |
boolean isGolobalConsumptionProfile()
void setGolobalConsumptionProfileEnabled(boolean bool)
IEnergyConsumptionProfile getGlobalEnergyConsumptionProfile()
void setGlobalEnergyConsumptionProfile(IEnergyConsumptionProfile p)
long getStartEnergyLevel()
long getMaxEnergyLevel()
long getMinEnergyLevel()
long getCurrentEnergyLevel()
long getPowerRate()
void updateEnergy(long duration, long consumption, long date)
long howLongCanExecute(ITask... tasks)
long howLongCanExecute(long maxEnergyToConsume, ITask... tasks)
long howMuchCanRecharge(long duration)
void reset()
IEnergyProfile newInstance(int... params)
String getName()
Copyright © 2012. All Rights Reserved.