ants.messor
Class MessorResourceDistribution

java.lang.Object
  |
  +--ants.messor.MessorResourceDistribution
All Implemented Interfaces:
Clearable, ResourceDistribution

public class MessorResourceDistribution
extends Object
implements ResourceDistribution

A resource distribution for the messor ant species is empty, since for messors there is no fixed set of "resources" in the system.

Version:
$Revision: 1.5 $
Author:
Alberto Montresor

Field Summary
 
Fields inherited from interface antsim.ResourceDistribution
NAME
 
Constructor Summary
MessorResourceDistribution(Factory factory, String name)
          Constructs a "do-nothing" resource distribution.
 
Method Summary
 void clear()
          Restores the object to its initial state.
 void distributeResources(ResourceSet resources, Peernet peernet)
          In this implementation, this method does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessorResourceDistribution

public MessorResourceDistribution(Factory factory,
                                  String name)
Constructs a "do-nothing" resource distribution.

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

distributeResources

public void distributeResources(ResourceSet resources,
                                Peernet peernet)
In this implementation, this method does nothing.

Specified by:
distributeResources in interface ResourceDistribution

clear

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

Specified by:
clear in interface Clearable