avrora.sim.energy
Class EnergyControl.Instance

java.lang.Object
  extended byavrora.sim.energy.EnergyControl.Instance
Enclosing class:
EnergyControl

public static class EnergyControl.Instance
extends java.lang.Object


Field Summary
 java.util.LinkedList consumer
           
 
Method Summary
 java.util.LinkedList getConsumers()
          get list of consumers
 void stateChange(Energy energy)
          update the state of a device
 void subscribe(EnergyObserver energyMonitor)
          add energy monitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

consumer

public final java.util.LinkedList consumer
Method Detail

subscribe

public void subscribe(EnergyObserver energyMonitor)
add energy monitor

Parameters:
energyMonitor - monitor

getConsumers

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

Returns:
consumer list

stateChange

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

Parameters:
energy - the energy model of the device