avrora.sim.energy
Class EnergyControl

java.lang.Object
  extended byavrora.sim.energy.EnergyControl

public class EnergyControl
extends java.lang.Object

implementation of energy control handles subsrciption of monitors and consumers


Nested Class Summary
static class EnergyControl.Instance
           
 
Constructor Summary
EnergyControl()
           
 
Method Summary
static void activate()
          activate the energy model, called by monitors who are interested in energy information
static void addConsumer(Energy energy)
          add consumer
static EnergyControl.Instance getCurrentInstance()
           
static void nextInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnergyControl

public EnergyControl()
Method Detail

addConsumer

public static void addConsumer(Energy energy)
add consumer

Parameters:
energy - consumer

activate

public static void activate()
activate the energy model, called by monitors who are interested in energy information


getCurrentInstance

public static EnergyControl.Instance getCurrentInstance()

nextInstance

public static void nextInstance()