ants.messor
Class MessorResourceSet
java.lang.Object
|
+--ants.messor.MessorResourceSet
- All Implemented Interfaces:
- Clearable, ResourceSet
- public class MessorResourceSet
- extends Object
- implements ResourceSet
A resource set for the messor ant species is empty, since for
messors there is no fixed set of "resources" in the system.
- Version:
- $Revision: 1.4 $
- Author:
- Alberto Montresor
Method Summary |
void |
clear()
Restores the object to its initial state. |
List |
getResources()
Returns null to represent this empty set of resources. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessorResourceSet
public MessorResourceSet(Factory factory,
String name)
- Creates an empty resource set.
- 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
getResources
public List getResources()
- Returns null to represent this empty set of resources.
- Specified by:
getResources
in interface ResourceSet
clear
public void clear()
- Restores the object to its initial state.
- Specified by:
clear
in interface Clearable