public class CooperationDomain extends Agent implements CooperationDomainInterface
Agent
, this agent can originate the following messages types:
performative | act |
see | reply handler |
---|---|---|---|
notify | join.cd | #notifyJoin(URLDescriptor) |
- |
notify | withdraw.cd | #notifyWithdraw(URLDescriptor) |
- |
Agent
, this agent responds to the
following messages types:
performative | act |
see |
---|---|---|
request | join.cd | #respondToJoin(MLMessage) |
inform | withdraw.cd | #handleWithdraw(MLMessage) |
request | withdraw.cd | #respondToWithdraw(MLMessage) |
request | get.members | #respondToGetMembers(MLMessage) |
request | observe.membership | #respondToObserveMembership(MLMessage) |
request | get.history | perform_get_history(MLMessage) |
request | get.data | perform_get_data(MLMessage) |
request | put.data | perform_put_data(MLMessage) |
"to CD" A message to this CD |
"ambiguous" A message that could be to this CD |
"whisper" A message to one or more CD members |
"public" A broadcast message |
"directed" A message to one or more CD members, but cc'ed to all | ||||||
fields | rec'd message | send message | rec'd message | send message(s) | rec'd message | send message(s) | rec'd message | send message(s) | rec'd message | send message(s) |
:sender | s | none | s | this-CD | s | this-CD | s | this-CD | s | this-CD |
:receiver | this-CD | this-CD | this-CD | this-CD | this-CD | |||||
:from | f | f | f?f:s | f | f?f:s | f | f?f:s | f | f?f:s | |
:to | this-CD | (empty) | * | * | * | |||||
notes | attempt to interpret and service the message | Attempt to interpret and service the message. If the CD can't, then forward it to all |
t may be a list of recipients. The sent message's "to" list always has the recipient first |
explicit "forward to all" | eg: Received message: ":to + url url url". Sent message: ":to the-receiver other-urls-in-the-TO-list" |
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.
TransientAgent.Conversations, TransientAgent.NewAgentLispCommand
AbstractProcess.Subthread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
HISTORY_NODE
The name of the data object in which we store the cooperation domain
message history.
|
protected Vector<URLDescriptor> |
members
A
Vector of URLDescriptor s of the members of this cooperation domain. |
protected Hashtable<URLDescriptor,String> |
membershipSubscriptions |
private Hashtable<URLDescriptor,String> |
messageObservers
The mesage notification list.
|
static int |
PING_CHANCES
The number of times a member agent's ping must timeout before it is
withdrawn from this cooperation domain.
|
private static long |
PING_INTERVAL
The interval that determines how often this agent will attempt to ping its
members.
|
private static long |
PING_WAIT_TIME
The ping timeout value used when this agent's members are pinged.
|
private RecurringTimeEvent |
pingMemebersEvent |
private long |
pingTime
The next moment in time that all of our members will be pinged.
|
agentConstructorComplete, properties
cacheKB, CDInvitedTo, CDinvitee, conversationData, defaultOntologyClassName, DEFER_ACTION, DROP_ACTION, kBase, lisp, lispEnvironment, ListOfArgs, methodMap, ontologyEngine, ontologyEngineCreateMethod, ontologyEngineLoadMethod, policies, policiesAlwaysApply, policiesLastResort, primaryUI, proxy, UIs, usingProxy
eventQueue, exitWaitCounter, heartbeat, huntForPort, initParams, ontology, ontologyShared, options, securityFilter, trace, TRACE_MONITOR, TRACE_OFF, TRACE_ON, TRACE_TO_FILE, TRACE_UNDEFINED, transformations, uniqueThreadName, waitingForAgentToStart, waitingForEvent, waitingForSocketServerToStart
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
CooperationDomain(ParamsMap params,
AgentUI ui)
Creates a new
CooperationDomain . |
Modifier and Type | Method and Description |
---|---|
protected void |
archiveMessage(MLMessage message)
Stores the given message in this cooperation domain's history node.
|
protected PerformDescriptor |
assembleDefault(MLMessage message)
The default code for dealing with a
proxy message. |
protected PerformDescriptor |
conclude_membership_change(MLMessage message) |
PerformDescriptor |
consider_proxy_message(MLMessage message)
Public method for forwarding proxy messages (I think)
|
static MLMessage |
constructCDProxyMessage(MLMessage message,
URLDescriptor sender,
URLDescriptor cd)
Constructs a new proxy message which instructs the cooperation domain to
forward the encapsulated message to all current members of that cooperation
domain.
|
static MLMessage |
constructCDProxyMessage(MLMessage message,
URLDescriptor sender,
URLDescriptor cd,
List<URLDescriptor> to,
boolean whisper)
Constructs a new proxy message which instructs the cooperation domain to
forward the encapsulated directed or whisper message.
|
static MLMessage |
constructCDProxyMessage(MLMessage message,
URLDescriptor sender,
URLDescriptor cd,
URLDescriptor to,
boolean whisper)
Constructs a new proxy message which instructs the cooperation domain to
forward the encapsulated directed or whisper message.
|
PerformDescriptor |
evaluate_membership_change(MLMessage message) |
Pair<List<URLDescriptor>,MLMessage> |
extractCDProxyInformation(String content)
Using the content parameter, parse out the members to forward
a message to.
|
protected void |
finishRun()
Subclasses may override this method to cleanup after the
message loop exits and the agent is about to terminate.
|
String |
getCDCreator()
Retreives the creator (username) of the cooperation domain.
|
StatusMLMessageList |
getEntireHistory()
Retreives the entire history for the cooperation domain.
|
StatusMLMessageList |
getHistory(URLDescriptor member)
Retreives the history for a given agent in the cooperation domain.
|
Vector<URLDescriptor> |
getMembers()
Retreives a membership list for the cooperation domain.
|
void |
initializeAfterRegistered(boolean registered)
Called by handleReply_registerAgentInstance.
|
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.
|
protected TransientAgentInternalFrame |
makeDefaultInternalFrame(TransientAgent agent,
String title,
Container aFrame)
Create the default internal Frame (usually) with tabs for this agent type.
|
protected void |
notifySendingMessage(MLMessage message)
This method is to be overridden by any subclasses that wish to be informed
whenever a message is actually sent out.
|
Status |
observeMessages(URLDescriptor agent,
String replyWith,
boolean addIfTrue)
Adds or removes the given agent to/from the message notification list.
|
protected void |
pendingFinishRun()
Override of method to cleanup after an
#AbstractProcess.exit() has
been called, but before the message loop exits and the agent is about to
terminate. |
protected PerformDescriptor |
perform_get_data(MLMessage message)
Responds to an incoming get.data request message by sending a reply
giving the status of the operation and the requested data.
|
protected PerformDescriptor |
perform_get_history(MLMessage message)
Responds to a get.history request using
getHistory(URLDescriptor)
to reply. |
PerformDescriptor |
perform_get_members(MLMessage message) |
PerformDescriptor |
perform_join_cd(MLMessage message)
Responds to a join.cd request.
|
protected PerformDescriptor |
perform_observe_messages(MLMessage message)
Deprecated.
|
protected PerformDescriptor |
perform_put_data(MLMessage message)
Responds to an incoming put.data request message by sending a reply
giving the status of the operation.
|
PerformDescriptor |
perform_withdraw_cd(MLMessage message)
Responds to a withdraw.cd request.
|
protected PerformDescriptor |
release_membership_change(MLMessage message) |
PerformDescriptor |
release_ping(MLMessage msg)
This method is called when a ping reply message is received in response to a
previously sent ping request message.
|
private Status |
sendForwardedMessage(MLMessage message)
Deprecated.
|
private void |
setCDCreator(String cdCreator)
Sets the creator (username) of the cooperation domain to the given value.
|
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, finalize, getAgentOptions, getBooleanProperty, getCASAFilename, getCreateDate, getDataObject, getDataObjectInputStream, getDataObjectOutputStream, getDoubleProperty, getFloatProperty, getIntegerProperty, getLongProperty, getOptions, getStringProperty, hasProperty, isPersistent, main, makeDefaultGUI, makeOptions, putDataObject, putDataObject, readPersistent, ready, realizeAgentBehaviourFromOptions, removeProperty, setBooleanProperty, setDoubleProperty, setFloatProperty, setIntegerProperty, setLongProperty, setOptions, setPersistent, setStringProperty, updateOptions, writePersistent
abclEval, abclEval, abclEval, accept_deleteCD, accept_exit, accept_forward_message, accept_LAC_closing, accept_new_MenuItem, accept_update, acceptDefault, addConversation, addJoinedCooperationDomain, addMembers, addSubscribeEvents, assert_, assert_, authorizedByProxy, authorizeMessage, chooseSC, concludeDefault, consider_execute, consider_invite_to_cd, consider_new_MenuItem, consider_ping, consider_query_if, consider_query_ref, considerDefault, createCasaLispOperators, dispatchMsgHandlerMethod, doAddObserver, doAdvertise, doCDGetHistory_sync, doCDGetMembers, doCDPutData, doCDSubscribeMembership, doFindInstances_sync, doGetCooperationDomains, doGetOnology, doInviteToCD, doJoinCD, doPing_sync, doPing, doRegisterAgentInstance, doRegisterAgentInstance, doResolveURL, doSearchYP, doUnadvertise, doUnregisterAgentInstance, doUnregisterAgentType, doWithdrawCD, evaluateDefault, evesdrop, executeCommand, findFileResourcePath, findFileResourcePath, getAgentForThread, getAlwaysApplyPolicies, getBanner, getCachedKnowledgeBase, getChosenCommitment, getCommitmentProcessor, getConversation, getConversations, getConversationsReport, getDefaultBanner, getDefFileSystemLocations, getEventForThread, getField, getInstancesFound, getJoinedCooperationDomain, getJoinedCooperationDomains, getKnowledgeBase, getLACURL, getLastResortPolicies, getMembers, getMsgForThread, getObjectsForThread, getOntology, getOntologyEngine, getOntologyFileSuffix, getPolicies, getPrimaryUI, getProxy, getSCStore, getSerializedOntology, getStrategy, getStrategyGUI, getSubscribeEvents, getSubscribeEvents, getTermsFromContent, getUI, getUIForThread, getUIs, getUnfulfilledSocialCommitments, getUnfulfilledSocialCommitments, handleErrorReplies, handleEvent, handleLACClosing, hasActiveCommitments, hasConversation, hasStrategyGUI, initializePolicies, initializeThread, initJADE, initUI, isEventQueueReady, isRegistered, isRegisteredWithLAC, isStoppable, isTrusted, isTrusted, isUsingProxy, kb_get_value, makeDefaultInterface, makeDefaultTextInterface, monitorDefault, optionsToString, parseJADENode, pendingFinishRun_unregisterAgentInstance, pendingFinishRun_withdrawFromAllCDs, perform_execute, perform_FIPAStyle, perform_get_name, perform_get_ontology, perform_invite_to_cd, perform_method_call, perform_query_if, perform_query_if, perform_query_ref, perform_query_ref, performDefault, processCommitment, processCommitments, processObserverNotification, putExtendedOntology, putPolicy, putPolicyAlwaysApply, putPolicyLastResort, putReplacementOntology, putUI, query_ref, query_toString, query, queryIf, queryRef_toIntegerList, queryRef_toString, queryRef_toStringList, queryRef_toTermList, queryRef, queryRef, queryRefAIDs, queryRefURLs, querywithFilter, recursiveParent, recursivePermutations, release_execute, release_FIPAStyle, release_get_agents_registered, release_get_agents_running, release_get_members, release_get_ontology, release_join_cd, release_query_if, release_query_ref, release_resolve_url, release_unregister_agentType, release_unregister_instance, release_withdraw_cd, releaseDefault, removeConversation, removeCooperationDomains, removeJoinedCooperationDomain, removeSubscribeEvents, requestInstances, resolveConnectException, retrieveReturnedData, saveReturnedData, searchOntology, searchOntology1, setBanner, setCommitmentProcessor, setField, setInstancesFound, setOntology, shouldDoExecuteRequest, template_handleNewOntologyInfo, update, updateConversationProtocolType, verifyCD, verifyDefault, verifyMessage
addObserver, addObserver, addObserver, addObserver, addTraceTags, addTransformation, bump, clearAllTraceTags, closePort, compareTo, countObservers, defer, defer, deleteObserver, deleteObserver, deleteObservers, dequeueEvent, equals, eventBufferLoopBody, eventBufferLoopPeriodic, eventQueuePeek, existed, exit, fixupMessage, getAgent, getAgentName, getEventQueue, getInitParams, getNewMessage, getNewMessage, getPort, getSocketServer, getTrace, getTraceTags, getTransformationFor, getUniqueRequestID, getURL, getUseAckProtocol, getUsePriority, hasChanged, hasOpenPort, in, initializeConstructor, initializeURL, isA, isA, isA, isA, isAAct, isAAct, isAgentThread, isAPerformative, isAPerformative, isExiting, isInitialized, isLoggingTag, isObserveMessages, isPaused, isThisMyAddress, isTracing, loadClass, makeSubthread, makeSubthread, makeTraceParam, notifyObservers, notifyObservers, notifyObserversWithNoArg, notifyObserversWithTop, out, println, println, println, println, println, queueEvent, queueEventIf, removeTraceTags, resetRuntimeOptionsFromCommandLine, resetSecurityPackage, resetTraceOptions, revTransform, revTransform, run, sendMessage_primitive, sendMessage, sendMessage, sendMessageAndWait, sendQueryAndWait, sendRequestAndWait, sendRequestAndWait, setAllTraceTags, setObserveMessages, setPause, setTraceTags, setTracing, setURL, setUseAckProtocol, setUsePriority, startSocketServer, startTraceMonitor, step, transform, transform, unhandledMessage
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
getClass, hashCode, notify, notifyAll, wait, wait, wait
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
protected static String HISTORY_NODE
protected Vector<URLDescriptor> members
Vector
of URLDescriptor
s of the members of this cooperation domain.protected Hashtable<URLDescriptor,String> membershipSubscriptions
private Hashtable<URLDescriptor,String> messageObservers
Hashtable
linking the
URLDescriptor
of an agent that is observing the messages of
this cooperation domain to a String
of the
ML.REPLY_WITH
parameter that should be used when notifying
that agent of sent messages.private RecurringTimeEvent pingMemebersEvent
private static final long PING_INTERVAL
messageBufferLoopPeriodic()
,
Constant Field Valuesprivate static final long PING_WAIT_TIME
messageBufferLoopPeriodic()
,
Constant Field Valuespublic static final int PING_CHANCES
messageBufferLoopPeriodic()
,
Constant Field Valuesprivate long pingTime
PING_INTERVAL
.messageBufferLoopPeriodic()
protected void finishRun()
AbstractProcess
notifyObservers(state.STATE_EXITED)
.finishRun
in class AbstractProcess
public void initializeAfterRegistered(boolean registered)
Agent
TransientAgent.initializeAfterRegistered(boolean)
) after processing the persistent data.initializeAfterRegistered
in class Agent
registered
- Will be set to true if the agent has sucessfully registered with
the LAC; false otherwiseTransientAgent.initializeAfterRegistered(boolean)
private void setCDCreator(String cdCreator)
String
value representing the username of the
creator of the cooperation domain. This person/agent has full access
rights in the cooperation domain. This means that this person/agent can
modify other users' access rights. That is, limit or upgrade the level of
cooperation and collaboration that a person/agent has in the specific
cooperation domain.cdCreator
- A String
value representing the username of
the creator of the cooperation domain.protected PerformDescriptor assembleDefault(MLMessage message)
TransientAgent
proxy
message.
Subclasses may override this method to change the default behavior. In this
case, it just returns a StatusObjectassembleDefault
in class TransientAgent
message
- the message that precipitated this actionnull
alwayspublic Pair<List<URLDescriptor>,MLMessage> extractCDProxyInformation(String content)
content
- public static MLMessage constructCDProxyMessage(MLMessage message, URLDescriptor sender, URLDescriptor cd, URLDescriptor to, boolean whisper)
message
- The message to encapsulate within the proxy message.sender
- The sender of the proxy message.cd
- The cooperation domain which will recieve the proxy message and
forward the encapsulated message.to
- A List
containing the URLDescriptor
s of the
agents that should recieve the encapsulated message.whisper
- Constructs a whisper message if true
;
constructs a directed message if false
.MLMessage.constructProxyMessage(MLMessage, URLDescriptor, URLDescriptor, String)
public static MLMessage constructCDProxyMessage(MLMessage message, URLDescriptor sender, URLDescriptor cd, List<URLDescriptor> to, boolean whisper)
message
- The message to encapsulate within the proxy message.sender
- The sender of the proxy message.cd
- The cooperation domain which will recieve the proxy message and
forward the encapsulated message.to
- A List
containing the URLDescriptor
s of the
agents that should recieve the encapsulated message.whisper
- Constructs a whisper message if true
;
constructs a directed message if false
.MLMessage.constructProxyMessage(MLMessage, URLDescriptor, URLDescriptor, String)
public static MLMessage constructCDProxyMessage(MLMessage message, URLDescriptor sender, URLDescriptor cd)
message
- The message to encapsulate within the proxy message.sender
- The sender of the proxy message.cd
- The cooperation domain which will recieve the proxy message and
forward the encapsulated message.MLMessage.constructProxyMessage(MLMessage, URLDescriptor, URLDescriptor, String)
@Deprecated private Status sendForwardedMessage(MLMessage message)
Deprecated in favour of consider_proxy_message(MLMessage)
message
- the message
to forwardAbstractProcess.sendMessage(MLMessage)
consider_proxy_message(MLMessage)
protected void notifySendingMessage(MLMessage message)
TransientAgent
notifySendingMessage
in class TransientAgent
protected void archiveMessage(MLMessage message)
message
- The message to store in the hostory node.public PerformDescriptor consider_proxy_message(MLMessage message)
message
- CooperationDomain#sendForwardMessage(MLMessage)
callpublic PerformDescriptor perform_join_cd(MLMessage message)
performative | request |
act | join.cd |
language | casa.agentCom.URLDescriptor |
content | a URLDescriptor object for the agent that wants to join |
success or warning | failure | |
---|---|---|
performative | reply | failure | refuse |
act | join.cd | join.cd |
language | casa.Status | casa.Status |
content | a Status object | a Status object |
join(URLDescriptor)
returned a negative Status (the
requester agent was not joined to the domain).message
- an incoming join.cd request messageAbstractProcess.sendMessage(MLMessage)
call for the reply messagepublic Status join(URLDescriptor joiner)
join
in interface CooperationDomainInterface
joiner
- The agent who is joining the cooperation domain.Status
of the join: public PerformDescriptor perform_withdraw_cd(MLMessage message)
performative | request |
act | withdraw.cd |
language | casa.agentCom.URLDescriptor |
content | a URLDescriptor object for the agent that wants to withdraw |
success or warning | failure | |
---|---|---|
performative | reply | failure | refuse |
act | join.cd | join.cd |
language | casa.Status | casa.Status |
content | a Status object | a Status object |
withdraw(URLDescriptor)
returned a negative Status (the
requester agent was not joined to the domain).message
- an incoming withdraw.cd request messageAbstractProcess.sendMessage(MLMessage)
call for the reply messageprotected void pendingFinishRun()
#AbstractProcess.exit()
has
been called, but before the message loop exits and the agent is about to
terminate.pendingFinishRun
in class Agent
AbstractProcess.pendingFinishRun()
public Status withdraw(URLDescriptor member)
withdraw
in interface CooperationDomainInterface
member
- The agent (presumably a member) who is withdrawing from the
cooperation domain.Status
of the withdrawl:
public PerformDescriptor perform_get_members(MLMessage message)
public Vector<URLDescriptor> getMembers()
URLDescriptor
s that are members of the cooperation domain.getMembers
in interface CooperationDomainInterface
Vector
of URLDescriptor
s (encapsulated in a StatusURLDescriptorList
) that are members of the cooperation domain. The status will be: public PerformDescriptor evaluate_membership_change(MLMessage message)
protected PerformDescriptor release_membership_change(MLMessage message)
protected PerformDescriptor conclude_membership_change(MLMessage message)
@Deprecated protected PerformDescriptor perform_observe_messages(MLMessage message)
performative | subscribe |
act | observe.messages |
reply-by | 0 |
sense | positive | negative |
language | casa.agentCom.URLDescriptor |
content | a URLDescriptor object |
performative | notify |
act | message.forwarded |
language | casa.agentCom.URLDescriptor |
content | a URLDescriptor object |
message
- an incoming observe.membership subscribe messageStatus
object with a value of 0public Status observeMessages(URLDescriptor agent, String replyWith, boolean addIfTrue)
agent
- The agent (presumably not a member) who is requesting to be
added or removed from the list of agents that would like to be notified of
every message forwarded by the cooperation domain.replyWith
- This is the REPLY_WITH parameter of the original request
that should be used in all of the notifications in reply to that message.
This may be null
if addIfTrue is false
.addIfTrue
- This should be true
if the agent is would
like to be added to the list; false
otherwise.Status
of the operation:
protected PerformDescriptor perform_get_history(MLMessage message)
getHistory(URLDescriptor)
to reply. It handles request messages of the form:
performative | request |
act | get.history |
success or warning | failure | |
---|---|---|
performative | reply | failure |
act | get.history | get.history |
language | casa.StatusMLMessageList | text |
content | a StatusMLMessageList object | explanitory text |
message
- the incoming get.history request messagepublic 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.getHistory
in interface CooperationDomainInterface
member
- The member for whom we are retreiving 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:
public StatusMLMessageList getEntireHistory()
MLMessage
s (encapsulated in a
StatusMLMessageList
) that have been sent within the
cooperation domain.getEntireHistory
in interface CooperationDomainInterface
Vector
of MLMessage
s (encapsulated
in a StatusMLMessageList
) that have been sent within the
cooperation domain. The status will be:
protected PerformDescriptor perform_put_data(MLMessage message)
performative | request |
act | put.data |
language | casa.DataStorageDescriptor |
content | a DataStorageDescriptor object |
success or warning | failure | |
---|---|---|
performative | reply | failure | refuse |
act | put.data | put.data |
language | casa.Status | casa.Status |
content | a Status object | a Status object |
message
- an incoming put.data request messageAbstractProcess.sendMessage(MLMessage)
call for the reply messageprotected PerformDescriptor perform_get_data(MLMessage message)
performative | request |
act | get.data |
language | identifier |
content | named-data name |
success or warning | failure | |
---|---|---|
performative | reply | failure |
act | get.data | get.data |
language | casa.StatusString | casa.Status |
content | a StatusString object | a Status object |
message
- an incoming get.data request messageAbstractProcess.sendMessage(MLMessage)
call for the reply messagepublic PerformDescriptor release_ping(MLMessage msg)
release_ping
in class TransientAgent
msg
- the incomming reply messageTransientAgent.verifyMessage(MLMessage,String[])
public String getCDCreator()
String
value representing the username of the
creator of the cooperation domain. This person/agent has full access
rights in the cooperation domain. This means that this person/agent can
modify other users' access rights. That is, limit or upgrade the level of
cooperation and collaboration that a person/agent has in the specific
cooperation domain.protected TransientAgentInternalFrame makeDefaultInternalFrame(TransientAgent agent, String title, Container aFrame)
makeDefaultInternalFrame
in class Agent
agent
- the owner agenttitle
- the title of the windowaFrame
- the owner frame in which this window is to be embedded