Package | Description |
---|---|
casa |
The casa package is the main package for CASA (Collaborative Agent System
Architecture), which is an infrastructure for agent based systems.
|
casa.interfaces |
Contains classes for important
interfaces used in CASA. |
casa.policy.sc3 | |
casa.socialcommitments |
Contains classes implementing social commitments.
|
casa.socialcommitments.operators | |
casa.socialcommitments.ui |
Modifier and Type | Method and Description |
---|---|
protected abstract SocialCommitment |
CommitmentProcessor.choose() |
SocialCommitment |
TransientAgent.chooseSC(Collection<SocialCommitment> SocialCommitments) |
protected SocialCommitment |
TransientAgent.getChosenCommitment() |
protected abstract SocialCommitment |
AbstractProcess.getChosenCommitment() |
abstract SocialCommitment |
CommitmentProcessor.peek() |
protected SocialCommitment |
TransientAgent.processCommitment(SocialCommitment sc) |
abstract SocialCommitment |
CommitmentProcessor.processCommitment(SocialCommitment sc) |
protected abstract SocialCommitment |
AbstractProcess.processCommitment(SocialCommitment sc) |
protected SocialCommitment |
TransientAgent.processCommitments()
If the parent classes
AbstractProcess.processCommitments() doesn't
do anything (returns false), and there is a TransientAgent.commitmentProcessor
with outstanding commitments, calls the #processCommitments() method. |
abstract SocialCommitment |
CommitmentProcessor.processCommitments() |
protected SocialCommitment |
AbstractProcess.processCommitments()
Subclasses will normally override this.
|
Modifier and Type | Method and Description |
---|---|
Collection<SocialCommitment> |
TransientAgent.getUnfulfilledSocialCommitments()
Retrieve all unfulfilled SocialCommitments
|
Collection<SocialCommitment> |
TransientAgent.getUnfulfilledSocialCommitments(String id)
Used by Conversations to track their respective SocialCommitments
|
Modifier and Type | Method and Description |
---|---|
protected SocialCommitment |
TransientAgent.processCommitment(SocialCommitment sc) |
abstract SocialCommitment |
CommitmentProcessor.processCommitment(SocialCommitment sc) |
protected abstract SocialCommitment |
AbstractProcess.processCommitment(SocialCommitment sc) |
Modifier and Type | Method and Description |
---|---|
SocialCommitment |
TransientAgent.chooseSC(Collection<SocialCommitment> SocialCommitments) |
Modifier and Type | Method and Description |
---|---|
SocialCommitment |
PolicyAgentInterface.chooseSC(Collection<SocialCommitment> SocialCommitments) |
Modifier and Type | Method and Description |
---|---|
SocialCommitment |
PolicyAgentInterface.chooseSC(Collection<SocialCommitment> SocialCommitments) |
Modifier and Type | Method and Description |
---|---|
protected SocialCommitment |
ConcreteCommitmentProcessor.choose() |
protected SocialCommitment |
ConcreteCommitmentProcessor.choose(List<SocialCommitment> coll)
Choose a commitment to focus on by first calling the owner agent's
TransientAgent.chooseSC(Collection) method; if that method
returns null (indicating it doesn't want to make the decision) then
choose the first commitment that has a priority higher or equal to and
other commitment. |
protected SocialCommitment |
ConcreteCommitmentProcessor.chooseWithoutMarking() |
protected SocialCommitment |
ConcreteCommitmentProcessor.chooseWithoutMarking(List<SocialCommitment> coll) |
protected SocialCommitment |
ConcreteCommitmentProcessor.findMoreSpecific(SocialCommitment chosen,
Collection<SocialCommitment> coll) |
SocialCommitment |
ConcreteCommitmentProcessor.peek() |
SocialCommitment |
ConcreteCommitmentProcessor.processCommitment(SocialCommitment sc) |
SocialCommitment |
ConcreteCommitmentProcessor.processCommitments()
If there are active social commitments in the store, choose one, and
execute it and return true.
|
Modifier and Type | Method and Description |
---|---|
protected List<SocialCommitment> |
ConcreteCommitmentProcessor.getActiveCommitments() |
Modifier and Type | Method and Description |
---|---|
protected SocialCommitment |
ConcreteCommitmentProcessor.findMoreSpecific(SocialCommitment chosen,
Collection<SocialCommitment> coll) |
private boolean |
ConcreteCommitmentProcessor.isSubsumedBy(SocialCommitment c1,
SocialCommitment c2) |
protected PerformDescriptor |
ConcreteCommitmentProcessor.perform(SocialCommitment commitment,
PolicyAgentInterface agent) |
SocialCommitment |
ConcreteCommitmentProcessor.processCommitment(SocialCommitment sc) |
Modifier and Type | Method and Description |
---|---|
protected SocialCommitment |
ConcreteCommitmentProcessor.choose(List<SocialCommitment> coll)
Choose a commitment to focus on by first calling the owner agent's
TransientAgent.chooseSC(Collection) method; if that method
returns null (indicating it doesn't want to make the decision) then
choose the first commitment that has a priority higher or equal to and
other commitment. |
protected SocialCommitment |
ConcreteCommitmentProcessor.chooseWithoutMarking(List<SocialCommitment> coll) |
protected SocialCommitment |
ConcreteCommitmentProcessor.findMoreSpecific(SocialCommitment chosen,
Collection<SocialCommitment> coll) |
Modifier and Type | Class and Description |
---|---|
class |
DependantSocialCommitment
Title: CASA Agent Infrastructure
|
Modifier and Type | Field and Description |
---|---|
private SocialCommitment |
DependantSocialCommitment.guard
The agent we're observing
|
protected SocialCommitment |
Action.ownerSC
The social commitment that "owns" this Action (if there is one).
|
Modifier and Type | Method and Description |
---|---|
SocialCommitment |
SocialCommitment.clone() |
SocialCommitment |
Action.getOwner() |
Modifier and Type | Method and Description |
---|---|
Collection<SocialCommitment> |
SocialCommitmentsStore.getAllCommitments() |
List<SocialCommitment> |
SocialCommitmentsStore.getCommitments(URLDescriptor debtor,
URLDescriptor creditor) |
List<SocialCommitment> |
SocialCommitmentsStore.getCommitments(URLDescriptor debtor,
URLDescriptor creditor,
Set<SocialCommitmentStatusFlags> mask) |
Collection<SocialCommitment> |
SocialCommitmentsStore.getUnfulfilledCommitments()
Retrieves all unfulfilled social commitments, as opposed to just ones
associated with a particular conversation ID
|
Collection<SocialCommitment> |
SocialCommitmentsStore.getUnfulfilledCommitments(String id) |
Modifier and Type | Method and Description |
---|---|
void |
SocialCommitmentsStore.addCommitment(SocialCommitment socialCommitment) |
void |
SocialCommitmentStoreObserver.addMember(SocialCommitment socialCommitment) |
protected void |
SocialCommitment.addObserver(SocialCommitment sco)
TODO Document the addObserver method.
|
abstract int |
SocialCommitmentComparator.compare(SocialCommitment commitment1,
SocialCommitment commitment2)
Compares the two given social commitments.
|
int |
SerialNumberSocialCommitmentComparator.compare(SocialCommitment commitment1,
SocialCommitment commitment2) |
int |
PrioritySocialCommitmentComparator.compare(SocialCommitment commitment1,
SocialCommitment commitment2)
Compares the two given social commitments.
|
int |
FulfilledLastSocialCommitmentComparator.compare(SocialCommitment commitment1,
SocialCommitment commitment2) |
int |
SocialCommitment.compareTo(SocialCommitment commitment)
Compare the given social commitment to this social commitment.
|
private boolean |
SocialCommitment.equals(SocialCommitment commitment)
Determines if the given social commitment is equal to this social
commitment.
|
private static String |
SocialCommitmentHTMLFormatter.fadeColor(SocialCommitment socialCommitment,
long fadeTime) |
static String |
SocialCommitmentHTMLFormatter.formatCommitment(SocialCommitment socialCommitment,
long fadeTime)
Formats a
SocialCommitment object using HTML tags. |
private SocialCommitmentsStore.SCs |
SocialCommitmentsStore.getVector(SocialCommitment socialCommitment,
boolean create) |
Status |
SocialCommitmentDescriptor.isApplicable(PolicyAgentInterface agent,
SocialCommitment sc) |
boolean |
SocialCommitmentFilter.keepSocialCommitment(SocialCommitment socialCommitment) |
abstract boolean |
SocialCommitmentFilter.keepSocialCommitment(SocialCommitment socialCommitment,
long now) |
boolean |
OldSocialCommitmentFilter.keepSocialCommitment(SocialCommitment socialCommitment,
long now) |
void |
SocialCommitmentsStore.removeCommitment(SocialCommitment socialCommitment) |
void |
SocialCommitmentStoreObserver.removeMember(SocialCommitment socialCommitment) |
void |
DependantSocialCommitment.setGuard(SocialCommitment newGuard)
Sets the guard and sets this commitment's READY state to false (awaiting the guard's execution) if the
guard is non-null, READY goes to true otherwise.
|
void |
Action.setOwner(SocialCommitment owner) |
void |
SocialCommitmentObserver.update(SocialCommitment observable,
PerformDescriptor stat) |
Constructor and Description |
---|
DependantSocialCommitment(PolicyAgentInterface agent,
SocialCommitment guard,
URLDescriptor newDebtor,
URLDescriptor newCreditor,
String newPerformative,
Act newAct,
Event event,
Action action) |
DependantSocialCommitment(PolicyAgentInterface agent,
SocialCommitment guard,
URLDescriptor newDebtor,
URLDescriptor newCreditor,
String newPerformative,
Act newAct,
Event event,
Action action,
Event... events) |
Operation(SocialCommitmentsStore.Operator op,
SocialCommitment sc) |
Modifier and Type | Method and Description |
---|---|
protected SocialCommitment |
AddSocialCommitment.createCommitment(SocialCommitmentsStore store,
PolicyAgentInterface agent) |
protected SocialCommitment |
AddDependentSocialCommitment.createCommitment(SocialCommitmentsStore store,
PolicyAgentInterface agent) |
protected SocialCommitment |
AddDependentSocialCommitment.findGuard(SocialCommitmentsStore store,
PolicyAgentInterface agent) |
Modifier and Type | Field and Description |
---|---|
(package private) Vector<SocialCommitment> |
SocialCommitmentListModel.commitmentList |
Modifier and Type | Method and Description |
---|---|
void |
SocialCommitmentListModel.addMember(SocialCommitment socialCommitment) |
void |
SocialCommitmentListModel.removeMember(SocialCommitment socialCommitment) |