example.loadbalance
Class LBObserver

java.lang.Object
  extended by example.loadbalance.LBObserver
All Implemented Interfaces:
Control

public class LBObserver
extends java.lang.Object
implements Control

This class monitors the state of the load balancing process at each cycle. It is assumed that the network nodes comply to the SingleValue interface.


Parameter Summary
protocol
          The protocol to operate on.
show_values
          If defined, print the load value.
 
Constructor Summary
LBObserver(java.lang.String name)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 boolean execute()
          Performs arbitrary modifications or reports arbitrary information over the components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

protocol

The protocol to operate on.


show_values

If defined, print the load value. Not defined by default.

Constructor Detail

LBObserver

public LBObserver(java.lang.String name)
Standard constructor that reads the configuration parameters. Invoked by the simulation engine.

Parameters:
name - the configuration prefix identifier for this class.
Method Detail

execute

public boolean execute()
Description copied from interface: Control
Performs arbitrary modifications or reports arbitrary information over the components.

Specified by:
execute in interface Control
Returns:
true if the simulation has to be stopped, false otherwise.