ants.utils
Class InsantRequest
java.lang.Object
|
+--ants.utils.InsantRequest
- public class InsantRequest
- extends Object
This is the class representing the request a nest implementation has to pass the
ant in charge of spreading the knowledge about the existence of a new resource.
Every ant meant for this task has to accept such a request as input parameter, or
a class extending ants.utils.InsantRequest.
- Author:
- Francesco Russo (frusso@cs.unibo.it)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsantRequest
public InsantRequest(URL url,
String keywords)
throws IOException
- Creates an InsantRequest object for the specified URL.
This constructor computes keywords based on the filename
supplied with the URL.
InsantRequest
public InsantRequest(String urlString,
String keywords)
- Creates an InsantRequest object for the specified URL.
This constructor computes keywords based on the filename
supplied with the URL.
SIMULATION VERSION.
getUrlResource
public UrlResource getUrlResource()
getKeywords
public String getKeywords()