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)

Constructor Summary
InsantRequest(String urlString, String keywords)
          Creates an InsantRequest object for the specified URL.
InsantRequest(URL url, String keywords)
          Creates an InsantRequest object for the specified URL.
 
Method Summary
 String getKeywords()
           
 UrlResource getUrlResource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

getUrlResource

public UrlResource getUrlResource()

getKeywords

public String getKeywords()