Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.energy
Class EnergyControl.Instance

    java.lang.Object
      avrora.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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD