|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.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 EnergyControlenergyMonitor - monitorpublic void addConsumer(Energy energy)
addConsumer in interface EnergyControlenergy - consumerpublic java.util.LinkedList getConsumers()
getConsumers in interface EnergyControlpublic void stateChange(Energy energy)
stateChange in interface EnergyControlenergy - the energy model of the device
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||