|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||
Holds discoveries in a priority queue of sorts
| Field Summary | |
|---|---|
| int | count |
| int | maxRanks |
| System.Collections.ArrayList[] | s |
| System.Collections.Hashtable | urls |
| Constructor Summary | |
|---|---|
|
Discoveries(int maxRanks) Constructor |
|
| Property Summary | |
|---|---|
| int |
Count
Gets the number of discoveries made |
| int |
MaximumRanks
Maximum ranks this instance can handle |
| Method Summary | |
|---|---|
| void |
Add(Naanou.LookupService.Discovery discovery) Adds a discovery. Ensures that URLs are unique |
| int |
CountAtRank(int rank) Gets the count of discoveries at a certain rank |
| Naanou.LookupService.Discoveries[] |
GetAtRank(int rank) Gets all the discoveries from a specific rank |
| Naanou.LookupService.Discovery |
GetAtRank(int rank, int position) Gets a discovery at a certain rank and position |
| Naanou.LookupService.Discoveries.DiscoveryEnumerator |
GetEnumerator() Gets enumerator |
| System.Collections.Hashtable |
GetNetworks(string primaryUrl, int largestCount, string largestId) Groups results by network, then by rank. Hashtable is keyed by network id, and contains ArrayLists of Discovery structs. |
| System.Collections.IEnumerator |
IEnumerable.GetEnumerator() Gets enumerator |
| Methods inherited from class System.Object |
|---|
| Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
| Field Detail |
|---|
private int count
private int maxRanks
private System.Collections.ArrayList[] s
private System.Collections.Hashtable urls
| Constructor Detail |
|---|
public Discoveries(int maxRanks)
Constructor
Parameters:
maxRanks - | Property Detail |
|---|
public int Count
Gets the number of discoveries made
public int MaximumRanks
Maximum ranks this instance can handle
| Method Detail |
|---|
public void Add(Naanou.LookupService.Discovery discovery)
Adds a discovery. Ensures that URLs are unique
Parameters:
discovery - Discoverypublic int CountAtRank(int rank)
Gets the count of discoveries at a certain rank
Parameters:
rank - Rankpublic Naanou.LookupService.Discoveries[] GetAtRank(int rank)
Gets all the discoveries from a specific rank
Parameters:
rank - Rankpublic Naanou.LookupService.Discovery GetAtRank(int rank,
int position)
Gets a discovery at a certain rank and position
Parameters:
rank - Rankposition - Positionpublic Naanou.LookupService.Discoveries.DiscoveryEnumerator GetEnumerator()
Gets enumerator
Returns:
public System.Collections.Hashtable GetNetworks(string primaryUrl,
int largestCount,
string largestId)
Groups results by network, then by rank. Hashtable is keyed by network id, and contains ArrayLists of Discovery structs.
Parameters:
largestCount - Largest networklargestId - Id of the largest networkprimaryUrl - Urlprivate System.Collections.IEnumerator IEnumerable.GetEnumerator()
Gets enumerator
|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||