|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--antsim.nestor.LocalRequestSet
This class is a simple implementation of ResourceSet
containing an hash table mapping ant identifiers to response
listeners.
| Field Summary |
| Fields inherited from interface anthill.nest.RequestSet |
NAME |
| Constructor Summary | |
LocalRequestSet(Factory factory,
String name)
Constructor |
|
| Method Summary | |
void |
add(RequestId key,
ResponseListener listener)
Adds an association between a key and the listener interested in the responses returned by this ant. |
void |
clear()
Restores the object to its initial state. |
boolean |
returnResources(RequestId key,
Resource[] resources)
Returns the specified resources to the listener associated to the given key |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LocalRequestSet(Factory factory,
String name)
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| Method Detail |
public void add(RequestId key,
ResponseListener listener)
RequestSet
add in interface RequestSetkey - the key that will be used later to obtain the
listenerlistener - the listener which will be notified when
a response is available
public boolean returnResources(RequestId key,
Resource[] resources)
RequestSet
returnResources in interface RequestSetkey - the key that is used to obtain listenerresources - the resources found.public void clear()
clear in interface Clearablepublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||