ants.messor
Class MessorRequestGenerator

java.lang.Object
  |
  +--ants.messor.MessorRequestGenerator
All Implemented Interfaces:
Clearable, RequestGenerator

public class MessorRequestGenerator
extends Object
implements RequestGenerator

This implementation generates fake computing request to be simulated in the Anthill environment.

Version:
$Revision: 1.7 $
Author:
Alberto Montresor

Field Summary
static String PAR_DEVPPE
          String name of the parameter used to
static String PAR_DEVRPP
          String name of the parameter used to
static String PAR_DEVTBE
          String name of the parameter used to
static String PAR_MEANPPE
          String name of the parameter used to
static String PAR_MEANRPP
          String name of the parameter used to
static String PAR_MEANTBE
          String name of the parameter used to
 
Fields inherited from interface antsim.RequestGenerator
NAME
 
Constructor Summary
MessorRequestGenerator(Factory factory, String name)
           
 
Method Summary
 void clear()
          Restores the object to its initial state.
 void generateRequests()
          In this simulator, this method is invoked at each tick.
 void init(ResourceSet resourceSet, Peernet peernet, ResponseMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAR_MEANTBE

public static final String PAR_MEANTBE
String name of the parameter used to

See Also:
Constant Field Values

PAR_DEVTBE

public static final String PAR_DEVTBE
String name of the parameter used to

See Also:
Constant Field Values

PAR_MEANPPE

public static final String PAR_MEANPPE
String name of the parameter used to

See Also:
Constant Field Values

PAR_DEVPPE

public static final String PAR_DEVPPE
String name of the parameter used to

See Also:
Constant Field Values

PAR_MEANRPP

public static final String PAR_MEANRPP
String name of the parameter used to

See Also:
Constant Field Values

PAR_DEVRPP

public static final String PAR_DEVRPP
String name of the parameter used to

See Also:
Constant Field Values
Constructor Detail

MessorRequestGenerator

public MessorRequestGenerator(Factory factory,
                              String name)
Parameters:
factory - the factory to be used to read configuration arguments and to create other configurable objects
name - the name that is associated to this instance in the configuration file
Method Detail

clear

public void clear()
Restores the object to its initial state.

Specified by:
clear in interface Clearable

init

public void init(ResourceSet resourceSet,
                 Peernet peernet,
                 ResponseMonitor monitor)
Specified by:
init in interface RequestGenerator

generateRequests

public void generateRequests()
In this simulator, this method is invoked at each tick.

Specified by:
generateRequests in interface RequestGenerator