|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAgent
CoPS.agents.CoPSAgent
CoPS.agents.CoPSTaskResponsible
Class implementing the Task Responsible role. The Task Responsible is responisble for administering the problem solving process.
Constructor Summary | |
CoPSTaskResponsible()
|
Method Summary | |
protected abstract ACLMessage |
composePSM(ACLMessage request)
Method specifying how to compose the psms. |
AID |
getDecomposer()
Method returning the AID of a decomposer. |
protected FileWriter |
getFileWriter()
Method returning the filewriter, associated with the file belonging to this task responsible agent. |
protected abstract java.lang.String |
getFinalPSM()
Method returning the last PSM to compose. |
protected abstract Ontology |
getOntology()
Abstract method to get the ontology this agent knows of. |
protected java.util.ArrayList |
getProblemSolvers()
Method returning a list containing list of the different actions of the tmst and the agents performing these actions. |
protected long |
getReplyByTime()
Method for getting the time to wait before starting to handle all responses collected in the Contract net part of the Team Formation process step. |
protected ACLMessage |
getRequest()
Method for getting the request gotten from the agent which this agent works for |
protected ACLMessage |
getResponse()
Method returning the response stored |
protected java.lang.String |
getSolution()
Method returning the solution of the problem being solved |
protected java.lang.String |
getSolutionLanguage()
This method should be implemented as a protected abstract method which has to be defined by the language the problem is formated as. |
protected java.lang.String |
getTask()
Method for getting the current task which the agent is working with. |
AID |
getTeamSpaceAgent()
Method returning the AID of a TeamSpaceAgent. |
protected TMST |
getTMST()
Method returning the tmst describing the possible solutions for the current problem being solved |
protected abstract Ontology |
intializeOntology()
Method for initializing which ontology this agent knows |
protected AID[] |
lookupProblemSolvers(Action action)
Method returning all problem solvers registered in the system which carry out a specified actiontype |
protected java.util.Vector |
makeCfps(ACLMessage cfp,
java.util.ArrayList actionsAndAgents)
Method that generates a vector of all CFPs needed for solving the decomsposed problem. |
protected java.util.Vector |
makeInvitations(java.util.Vector responses)
Method making the invitations used by the Form Team Behaviour as a part of the Contract Net protocol for forming a team. |
protected void |
mapAgentToExecutor(ACLMessage response)
Method taking a ACLMessage (a proposal) and maps the sender agent to the action in the tmst the agent has volunteered for. |
abstract boolean |
problemSolved()
Method returning true if the current problem is solved. |
abstract boolean |
reviewProblem(java.lang.String task)
Method which reviews whether a received task has a format that this TR understands. |
protected void |
setReplyByTime(long waitForMillis)
Method for setting time to wait for starting handling all of the responses from the agents which have been sent cfps. |
protected void |
setRequest(ACLMessage request)
Method setting the response for the agent which the CoPSTR works for. |
protected void |
setResponse(ACLMessage response)
Method setting the response for the agent which the CoPSTR works for. |
protected void |
setSolution(java.lang.String solution)
Method for storing the solution of a problem. |
protected void |
setTask(java.lang.String task)
Method for setting the current task. |
protected void |
setTMST(TMST tmst)
Method for setting the tmst describing the possible solutions for the task which is hopefully being solved. |
void |
setup()
The setup method. |
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 CoPSTaskResponsible()
Method Detail |
public void setup()
protected FileWriter getFileWriter()
public abstract boolean reviewProblem(java.lang.String task)
public abstract boolean problemSolved()
protected abstract Ontology intializeOntology()
protected abstract Ontology getOntology()
protected java.util.ArrayList getProblemSolvers()
protected java.util.Vector makeCfps(ACLMessage cfp, java.util.ArrayList actionsAndAgents)
cfp
- a generic CFP for using as a recipe for generating new ones.actionsAndAgents
- an ArrayList of the actions needed performing and all agents capable of performing them.
protected java.util.Vector makeInvitations(java.util.Vector responses)
protected void mapAgentToExecutor(ACLMessage response) throws java.lang.Exception
response
-
java.lang.Exception
public AID getDecomposer()
public AID getTeamSpaceAgent()
protected void setReplyByTime(long waitForMillis)
waitForMillis
- The time allowed to wait before answering the messageprotected long getReplyByTime()
protected AID[] lookupProblemSolvers(Action action)
protected void setTMST(TMST tmst)
tmst
- The task structure tree which describes the possible solutions for the problem at handprotected TMST getTMST()
protected java.lang.String getSolutionLanguage()
protected java.lang.String getSolution()
protected void setSolution(java.lang.String solution)
solution
- The solution to be stored.protected void setRequest(ACLMessage request)
protected ACLMessage getRequest()
protected void setResponse(ACLMessage response)
response
- The response to giveprotected ACLMessage getResponse()
protected void setTask(java.lang.String task)
task
- A string representation of the task being solvedprotected java.lang.String getTask()
protected abstract ACLMessage composePSM(ACLMessage request)
request
- The request specifying the psm requested
protected abstract java.lang.String getFinalPSM()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |