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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 objectsname
- the name that is associated to this instance in the
configuration file
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