public interface YellowPagesAgentInterface extends AgentInterface
YellowPagesAgentInterface
is an extension of
AgentInterface
that acts as an advertisement service for other
agents. It adds methods for the incoming requests that a yellow pages agent
must handle as well as constants used in comunication with a yellow pages
agent.
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Method and Description |
---|---|
Status |
advertise(AdvertisementDescriptor advertisement)
Adds the given advertisement to the list of current advertisements.
|
Status |
removeAdvertisement(AdvertisementDescriptor advertisement)
Removes the given advertisement from the list of current advertisements.
|
StatusAdvertisementDescriptorList |
search(AdvertisementSearchInterface searchParameters)
Retreives a list of advertisements that match the specified search
parameters.
|
destroyDataObject, getBooleanProperty, getCASAFilename, getDataObject, getDataObjectInputStream, getDataObjectOutputStream, getDoubleProperty, getFloatProperty, getIntegerProperty, getLongProperty, getStringProperty, hasProperty, isPersistent, putDataObject, putDataObject, ready, removeProperty, setBooleanProperty, setDoubleProperty, setFloatProperty, setIntegerProperty, setLongProperty, setPersistent, setStringProperty
doAdvertise, doCDGetHistory_sync, doCDGetMembers, doCDPutData, doFindInstances_sync, doGetCooperationDomains, doGetOnology, doInviteToCD, doJoinCD, doPing_sync, doPing, doRegisterAgentInstance, doRegisterAgentInstance, doSearchYP, doUnadvertise, doUnregisterAgentInstance, doUnregisterAgentType, doWithdrawCD, executeCommand, getInstancesFound, getJoinedCooperationDomains, getLACURL, getMembers, getOntology, getOptions, getSerializedOntology, getStrategyGUI, hasStrategyGUI, isAAct, isInitialized, isRegistered, makeDefaultInterface, putExtendedOntology, putReplacementOntology, putUI, release_get_ontology, removeCooperationDomains, requestInstances, setOptions, updateOptions
addObserver, addObserver, closePort, deleteObserver, deleteObserver, exit, getAgentName, getName, getNewMessage, getPort, getStrategy, getTrace, getUniqueRequestID, getURL, getUseAckProtocol, hasOpenPort, isA, isAPerformative, isExiting, isLoggingTag, isStoppable, isTracing, println, println, println, realizeAgentBehaviourFromOptions, sendMessage, setTracing, setUseAckProtocol, startTraceMonitor
addObserver, addObserver, countObservers, deleteObservers, hasChanged, notifyObservers, notifyObservers, notifyObserversWithNoArg, notifyObserversWithTop
abclEval, abclEval, abclEval, addTransformation, bump, chooseSC, defer, dequeueEvent, dispatchMsgHandlerMethod, evesdrop, getKnowledgeBase, getName, getSCStore, getSubscribeEvents, getTransformationFor, getUniqueRequestID, getURL, getUseAckProtocol, isA, isA, isA, isA, isAPerformative, isAPerformative, isLoggingTag, notifyObservers, println, println, println, queueEvent, queueEventIf, revTransform, revTransform, sendMessage, transform, transform
Status advertise(AdvertisementDescriptor advertisement)
advertisement
- The advertisement that should be added to the list of
current advertisements.Status
of the advertise action:
Status removeAdvertisement(AdvertisementDescriptor advertisement)
advertisement
- The advertisement that should be removed from the
list of current advertisements.Status
of the remove advertisement action:
StatusAdvertisementDescriptorList search(AdvertisementSearchInterface searchParameters)
AdvertisementSearchInterface
object. Returns a list of
AdvertisementDescriptor
s (encapsulated in a
StatusAdvertisementDescriptorList
) that match the specified
search parameters.searchParameters
- An object that will determine which of the
advertisements is a match.Vector
of AdvertisementDescriptor
s
(encapsulated in a StatusAdvertisementDescriptorList
) that
match the specified search parameters. The status will be: