public abstract class CommitmentProcessor extends Object
Title: CASA Agent Infrastructure
Description:
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.
Company: Knowledge Science Group, University of Calgary
Modifier and Type | Field and Description |
---|---|
protected PolicyAgentInterface |
agent
a non-null "owner" agent that must be past in the constructor
|
Constructor and Description |
---|
CommitmentProcessor(PolicyAgentInterface agent) |
Modifier and Type | Method and Description |
---|---|
protected abstract SocialCommitment |
choose() |
abstract SocialCommitmentsStore |
getStore() |
abstract boolean |
hasActiveCommitments() |
abstract boolean |
isStoppable()
determines if this process can be stopped.
|
void |
notifyMessageSent(MLMessage message)
This method is to be overridden by any subclasses that wish to be informed
whenever a message is actually sent out.
|
abstract SocialCommitment |
peek() |
abstract SocialCommitment |
processCommitment(SocialCommitment sc) |
abstract SocialCommitment |
processCommitments() |
protected PolicyAgentInterface agent
public CommitmentProcessor(PolicyAgentInterface agent)
public abstract SocialCommitment processCommitments()
remoteAgent
- public abstract SocialCommitmentsStore getStore()
public abstract SocialCommitment peek()
public void notifyMessageSent(MLMessage message)
message
- public abstract boolean isStoppable()
public abstract boolean hasActiveCommitments()
protected abstract SocialCommitment choose()
public abstract SocialCommitment processCommitment(SocialCommitment sc)