Package AccessGrid :: Module NetworkServicesManager :: Class NetworkServiceMatcher
[show private | hide private]
[frames | no frames]

Class NetworkServiceMatcher


A class for finding the best chain of network services to resolve streams that do not match capabilities of a node.
Method Summary
  __init__(self)
  Match(self, streams, capabilities, services)
Finds network services that can resolve mismatches between a set of streams and the node capabilities.
  __MatchInCapabilities(self, stream, services)
For a given stream, find network services that have matching in capabilities.
  __MatchOutCapabilities(self, services, capabilities)
For given services, find all services that have out capabilities that matches the capabilities of a node.

Method Details

Match(self, streams, capabilities, services)

Finds network services that can resolve mismatches between a set of streams and the node capabilities.

** Arguments **

* streams * Streams we want to match

* capabilities * A set of capabilities describing a node.

* services * A list of available network services.

** Returns **

* streamServiceList* A list containing tuple objects ([stream],[service]) that associates a set of streams with a chain of network services.

__MatchInCapabilities(self, stream, services)

For a given stream, find network services that have matching in capabilities.

** Arguments **

* stream * Stream we want to match against. * services * A list of network services.

** Returns **

*matchingServices* includes all matching services for a stream.

__MatchOutCapabilities(self, services, capabilities)

For given services, find all services that have out capabilities that matches the capabilities of a node.

** Arguments **

*services* A list of network services.

*capabilities* A set of capabilities describing a node.

** Returns **

* matchingServices * A list of network services with matching out capability.

Generated by Epydoc 2.1 on Thu Apr 14 16:39:29 2005 http://epydoc.sf.net