|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAgent
CoPS.agents.CoPSAgent
CoPS.agents.CoPSProblemSolver
This class implements the (abstract) Problem Solver agent of the CoPS framework. Modified by Kari Roessland.
Constructor Summary | |
CoPSProblemSolver()
|
Method Summary | |
protected abstract boolean |
deceideWhetherToMakeProposal(ACLMessage request)
Method for deceiding whether to make a proposal or not. |
protected ACLMessage |
getCurrentRequest()
Method for getting the problem this agent has agreed to solve. |
protected Codec[] |
getLanguages()
|
protected boolean |
getPartOfTeam()
The method getPartOfTeam returns true if the agent is part of a team and false if it is not. |
protected abstract Codec[] |
initializeLanguages()
Method for initializing the language this agent know. |
protected abstract Ontology[] |
initializeOntologies()
Method for initializing which ontologies this agent knows of. |
protected boolean |
knownLanguage(ACLMessage message)
Method checking whether the used language is one that is known to the agent or not. |
protected boolean |
knownOntology(ACLMessage message)
Method checking whether the used ontology is one that is known to the agent or not. |
protected abstract java.lang.String |
makeProposal(ACLMessage request)
Method which will make a proposal to the given request. |
protected abstract ACLMessage |
performAction(ACLMessage request)
Method specifying how to perform the action assigned |
protected void |
setCurrentRequest(ACLMessage request)
Method for setting the current problem which this problem solving agent is about to solve. |
protected void |
setPartOfTeam(boolean pot)
The method setPartOfTeam is called when the agent joins a team (set to true) and when the agent is finished joining a team (set to false). |
void |
setup()
The setup method, set the initial properties of the CoPSProblemSolver- agent. |
Methods inherited from class CoPS.agents.CoPSAgent |
setServiceDescription |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CoPSProblemSolver()
Method Detail |
public void setup()
protected Codec[] getLanguages()
protected boolean knownLanguage(ACLMessage message)
message
- The message to check whether use a language known to the agent.
protected abstract Ontology[] initializeOntologies()
protected abstract Codec[] initializeLanguages()
protected boolean knownOntology(ACLMessage message)
message
- The message to check whether use a ontology known to the agent.
protected abstract boolean deceideWhetherToMakeProposal(ACLMessage request)
request
- The request which asks for a proposal
protected abstract java.lang.String makeProposal(ACLMessage request)
request
- The request which the agent is to make a proposal for.
protected void setCurrentRequest(ACLMessage request)
protected ACLMessage getCurrentRequest()
protected boolean getPartOfTeam()
protected void setPartOfTeam(boolean pot)
protected abstract ACLMessage performAction(ACLMessage request)
request
- The request specifying the action requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |