avrora.sim
Interface EnergyControl

All Known Implementing Classes:
EnergyControlImpl

public interface EnergyControl

interface for energy control handles subsrciption of monitors and consumers


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
 

Method Detail

subscribe

public void subscribe(EnergyMonitorBase energyMonitor)
add energy monitor

Parameters:
energyMonitor - monitor

addConsumer

public void addConsumer(Energy energy)
add consumer

Parameters:
energy - consumer

getConsumers

public java.util.LinkedList getConsumers()
get list of consumers

Returns:
conumer list

stateChange

public void stateChange(Energy energy)
update the state of a device

Parameters:
energy - the energy model of the device