LookupLocatorDiscovery Utility Requirements

 

ID

LookupLocatorDiscovery Utility Requirement

Section

Comments

  1.  

Each instance of the LookupLocatorDiscovery class must behave as if it operates independently of all other instances.

3.4

 

  1.  

The equals method for this class returns true if and only if two instances of this class refer to the same object.

"

 

  1.  

The constructor of the LookupLocatorDiscovery class takes a single input parameter: a set of locators, none of whose elements may be null.

 

 

  1.  

Invoking the constructor with an input array that contains duplicate locators (as determined by LookupLocator.equals) is equivalent to performing the invocation with the duplicates removed from the array.

 

 

  1.  

Discovery typically starts as soon as an instance of this class is created, and ends when the terminate method is called.

 

 

  1.  

Discovery typically starts as soon as an instance of this class is created, and ends when the terminate method is called.

 

 

  1.  

However, if null is passed to the constructor, discovery will not be started until either the setLocators or addLocators method is called with a non-empty set.

 

 

  1.  

However, if the empty set is passed to the constructor, discovery will not be started until either the setLocators or addLocators method is called with a non-empty set.

 

 

  1.  

The getDiscoveredLocators method returns the set of LookupLocator objects representing the desired lookup services that have already been discovered.

 

 

  1.  

The getDiscoveredLocators If the set is empty, this method will return the empty array.

 

 

  1.  

The getDiscoveredLocators This method takes no arguments as input, and will return a new array upon each invocation.

 

 

  1.  

The getUndiscoveredLocators method returns the set of LookupLocator objects representing the desired lookup services that have not yet been discovered.

 

 

  1.  

The getUndiscoveredLocators If the set is empty, this method will return the empty array.

 

 

  1.  

The getUndiscoveredLocators This method takes no arguments as input, and will return a new array upon each invocation.