|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.sim.EnergyControlImpl
implementation of energy control handles subsrciption of monitors and consumers
Constructor Summary | |
EnergyControlImpl()
create a new instance of energy control |
Method Summary | |
void |
addConsumer(Energy energy)
add consumer |
java.util.LinkedList |
getConsumers()
get list of consumers |
void |
stateChange(Energy energy)
update the state of a device |
void |
subscribe(EnergyMonitorBase energyMonitor)
add energy monitor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnergyControlImpl()
Method Detail |
public void subscribe(EnergyMonitorBase energyMonitor)
subscribe
in interface EnergyControl
energyMonitor
- monitorpublic void addConsumer(Energy energy)
addConsumer
in interface EnergyControl
energy
- consumerpublic java.util.LinkedList getConsumers()
getConsumers
in interface EnergyControl
public void stateChange(Energy energy)
stateChange
in interface EnergyControl
energy
- the energy model of the device
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |