public interface CooperationDomainInterface extends AgentInterface
CooperationDomainInterface
is an extension of
AgentInterface
that acts as a meeting room for other agents.
It adds methods for all the incoming requests that a cooperation domain must
handle as well as constants used in communication with a cooperation domain.
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 |
---|---|
StatusMLMessageList |
getEntireHistory()
Retrieves the entire history for the cooperation domain.
|
StatusMLMessageList |
getHistory(URLDescriptor member)
Retrieves the history for a given agent in the cooperation domain.
|
Vector |
getMembers()
Retrieves a membership list for the cooperation domain.
|
Status |
join(URLDescriptor joiner)
Adds the specified agent to the list of current members and notifies any
agents that are observing membership that a new member has joined the
cooperation domain.
|
Status |
withdraw(URLDescriptor member)
Removes the specified agent from the list of current members and notifies
any agents that are observing membership that a member has withdrawn from
the cooperation domain.
|
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 join(URLDescriptor joiner)
joiner
- The agent who is joining the cooperation domain.Status
of the join:
Status withdraw(URLDescriptor member)
member
- The agent (presumably a member) who is withdrawing from the
cooperation domain.Status
of the withdrawal:
Vector getMembers()
URLDescriptor
s (encapsulated in a
StatusURLDescriptorList
) that are members of the cooperation
domain.Vector
of URLDescriptor
s (encapsulated
in a StatusURLDescriptorList
) that are members of the
cooperation domain. The status will be:
StatusMLMessageList getEntireHistory()
MLMessage
s (encapsulated in a
StatusMLMessageList
) that have been sent within the
cooperation domain.Vector
of MLMessage
s (encapsulated
in a StatusMLMessageList
) that have been sent within the
cooperation domain. The status will be:
StatusMLMessageList getHistory(URLDescriptor member)
MLMessage
s (encapsulated in a
StatusMLMessageList
) that have been sent within the
cooperation domain to the given agent or to all agents.member
- The member for whom we are retrieving the history.Vector
of MLMessage
s (encapsulated
in a StatusMLMessageList
) that have been sent within the
cooperation domain to the given agent or to all agents. The status will
be: