All Packages Class Hierarchy This Package Previous Next Index
Interface tlk.service.ServiceProvider
- public abstract interface ServiceProvider
- extends SandboxRunnable
This is a interface that has to be implemented by a service provider.
Written: Radu Sion
Version: 0.11
Source: ServiceProvider.java
Visit
Smart Software
-
getInterestGroups()
- This returns a an array of GroupID objects defining communication groups
of interest to this service provider.
-
getServices()
- This determines which services this provider is able to provide.
-
performService(Service)
- This executes a service and returns a result.
-
providesService(Service)
- This, in conjunction with the comparable methods determines if this
provider is able to provide a certain service.
performService
public abstract ServiceResult performService(Service s)
- This executes a service and returns a result.
- Parameters:
- s - Service object defining the service to be executed
- Returns:
- A ServiceResult object representing the result of executing
the given service.
providesService
public abstract long providesService(Service ss)
- This, in conjunction with the comparable methods determines if this
provider is able to provide a certain service. That means that we're
able to find a given service provided by this provider (in this
provider's list returned by getServices()) that is near enough
to the ss parameter service (by using the compareTo method on
the services)
- Parameters:
- ss - Service in question
- Returns:
- A number specifying a certain level of ability to offer the given service ...
getServices
public abstract Service[] getServices()
- This determines which services this provider is able to provide.
- Returns:
- An array of Service objects defining the services this provider
is able to offer
getInterestGroups
public abstract GroupID[] getInterestGroups()
- This returns a an array of GroupID objects defining communication groups
of interest to this service provider.
- Returns:
- An array of GroupID objects
All Packages Class Hierarchy This Package Previous Next Index