|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryRegistration
Defines the operations to query the different aspects of domain and actor registrations
Method Summary | |
---|---|
kaos.core.service.directory.KAoSAgentDescription |
getActor(java.lang.String actorGUID)
Returns description of the actor identified by the given name |
java.util.List |
getActorsFulfilling(java.lang.String actorConstraints)
Returns description of the actors fulfilling constraints expressed as the KIF statemant |
java.util.List |
getActorsWithAttributes(java.util.Map attributes)
Returns descriptions of the actors whose KAoSAgentDescription contains all specified attributes and their values. |
java.util.List |
getAllAgents()
Return all agent ids stored in the KAoS directory. |
kaos.core.service.directory.DomainDescription |
getDomain(java.lang.String name)
Returns description of the domain identified by the given name |
java.util.List |
getGroupLeaders(java.lang.String groupURI)
Get the list of Actors assigned as leaders for the given Group. |
java.util.List |
getGroupMembers(java.lang.String groupURI)
Get the list of Actors assigned as leaders for the given Group. |
java.util.List |
getGroupsLedBy(java.lang.String actorId)
Get the Groups led by the given Actor |
java.util.Vector<java.lang.String> |
getRootDomains()
Returns the id of all domains that have no parent domain |
java.util.List |
getSubdomains(java.lang.String domain)
Get the vector of subdomains assigned to this domain. |
java.util.Set |
getValuesForProperty(java.lang.String property,
java.lang.String subject)
|
Method Detail |
---|
kaos.core.service.directory.DomainDescription getDomain(java.lang.String name) throws DirectoryFailure
name
- String specifying the name of the domain to lookup
DirectoryFailure
- if the connection to the DS cannot be established.java.util.Vector<java.lang.String> getRootDomains() throws DirectoryFailure
DirectoryFailure
kaos.core.service.directory.KAoSAgentDescription getActor(java.lang.String actorGUID) throws DirectoryFailure, SearchException
actorGUID
- String specifying the GUID of the actor to lookup
DirectoryFailure
- if the connection to the DS cannot be established.
SearchException
- if the actor with the given name has not been found in the DSjava.util.List getActorsFulfilling(java.lang.String actorConstraints) throws DirectoryFailure, NoSuchActorException, kaos.ontology.util.QueryFailure
actorConstraints
- String specifying the GUID of the actor to lookup An example of a Constraints statement: Give me all agents that have as capability 'take picture'
with a cost of less than $1,- with a reliability of 75% or better and where the average number of processed messages in the past hour is less than 20.
DirectoryFailure
- if the connection to the DS cannot be established.
NoSuchActorException
- - if no actors matching the query properties could be found
kaos.ontology.util.QueryFailure
- if query failedjava.util.List getActorsWithAttributes(java.util.Map attributes) throws DirectoryFailure, kaos.ontology.util.QueryFailure
attributes
- Mpa containing attribute names and their values to match the attributes in the DS.
DirectoryFailure
- if the connection to the DS cannot be established.
kaos.ontology.util.QueryFailure
- if query failedjava.util.Set getValuesForProperty(java.lang.String property, java.lang.String subject) throws DirectoryFailure, kaos.ontology.util.QueryFailure
DirectoryFailure
kaos.ontology.util.QueryFailure
java.util.List getAllAgents() throws SearchException, DirectoryFailure
SearchException
- if an exception is thrown during the search.
DirectoryFailure
- if the directory cannot be found/is not available.java.util.List getGroupMembers(java.lang.String groupURI) throws DirectoryFailure, kaos.ontology.util.QueryFailure
groupURI
- - URI for the Group individual for which the members will be returned
DirectoryFailure
kaos.ontology.util.QueryFailure
java.util.List getGroupLeaders(java.lang.String groupURI) throws DirectoryFailure, kaos.ontology.util.QueryFailure
groupURI
- - URI for the Group individual for which the leaders will be returned
DirectoryFailure
kaos.ontology.util.QueryFailure
java.util.List getGroupsLedBy(java.lang.String actorId) throws DirectoryFailure, kaos.ontology.util.QueryFailure
actorId
- - id of the Actor (Agent)
DirectoryFailure
kaos.ontology.util.QueryFailure
java.util.List getSubdomains(java.lang.String domain) throws DirectoryFailure
domain
- - Domain name string
DirectoryFailure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |