|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a lookup algorithm It is an interface since we wanted to try many lookup algorithms. It has 2 methods: nextOnLookup - gets the next step on the lookup path, according to the lookup algorithm getMessagePath - returns the path of the lookup message
| Method Summary | |
MessagePath |
getMessagePath()
Returns the path of the lookup message |
LookupAlgorithm |
newLookupAlgorithm(AuthorizedViceroyPeer peer)
Creates a fresh new lookup algorithm, with empty path |
ViceroyPeer |
nextOnLookup(AuthorizedViceroyPeer peer,
Resource valueToLook)
Gets the next step on the lookup path, according to the lookup algorithm |
| Method Detail |
public ViceroyPeer nextOnLookup(AuthorizedViceroyPeer peer,
Resource valueToLook)
throws ResourceNotFoundException
peer - the peer which performs the current step in the lookupvalueToLook -
ResourceNotFoundExceptionpublic MessagePath getMessagePath()
public LookupAlgorithm newLookupAlgorithm(AuthorizedViceroyPeer peer)
peer - starting point of the new algorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||