CoPS.CheckUpExample
Class CheckUpTaskResponsible

java.lang.Object
  extended byAgent
      extended byCoPS.agents.CoPSAgent
          extended byCoPS.agents.CoPSTaskResponsible
              extended byCoPS.CheckUpExample.CheckUpTaskResponsible

public class CheckUpTaskResponsible
extends CoPSTaskResponsible

A class extending CoPSTaskResponsible, which implements a task responsible in our Checkup example application.

See Also:
Serialized Form

Constructor Summary
CheckUpTaskResponsible()
           
 
Method Summary
 ACLMessage composePSM(ACLMessage request)
          Method returning an ACLMessage describing the solution of a psm
 java.lang.String getFinalPSM()
          Method returning the last PSM to compose
protected  Ontology getOntology()
          Method returning the ontology.
protected  Ontology intializeOntology()
          Method returning an instance of the ontology known by this agent.
 boolean problemSolved()
          This is just a dummy method always returning true.
 boolean reviewProblem(java.lang.String task)
          This is just a dummy method always returning true.
 ServiceDescription setServiceDescription()
          Method overridden from the class CoPSAgent.
 
Methods inherited from class CoPS.agents.CoPSTaskResponsible
getDecomposer, getFileWriter, getProblemSolvers, getReplyByTime, getRequest, getResponse, getSolution, getSolutionLanguage, getTask, getTeamSpaceAgent, getTMST, lookupProblemSolvers, makeCfps, makeInvitations, mapAgentToExecutor, setReplyByTime, setRequest, setResponse, setSolution, setTask, setTMST, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckUpTaskResponsible

public CheckUpTaskResponsible()
Method Detail

getOntology

protected Ontology getOntology()
Method returning the ontology.

Specified by:
getOntology in class CoPSTaskResponsible
Returns:
The ontology defined by an Ontology object.

reviewProblem

public boolean reviewProblem(java.lang.String task)
This is just a dummy method always returning true.

Specified by:
reviewProblem in class CoPSTaskResponsible
Returns:
True.

problemSolved

public boolean problemSolved()
This is just a dummy method always returning true.

Specified by:
problemSolved in class CoPSTaskResponsible
Returns:
True.

intializeOntology

protected Ontology intializeOntology()
Method returning an instance of the ontology known by this agent. This agent knows the CheckUpOntology.

Specified by:
intializeOntology in class CoPSTaskResponsible
Returns:
Ontology

setServiceDescription

public ServiceDescription setServiceDescription()
Method overridden from the class CoPSAgent.

Specified by:
setServiceDescription in class CoPSAgent
Returns:
The agents ServiceDescription object to be registered with the DF.

getFinalPSM

public java.lang.String getFinalPSM()
Method returning the last PSM to compose

Specified by:
getFinalPSM in class CoPSTaskResponsible
Returns:
The most top-level PSM in the TMST as a String

composePSM

public ACLMessage composePSM(ACLMessage request)
Method returning an ACLMessage describing the solution of a psm

Specified by:
composePSM in class CoPSTaskResponsible
Parameters:
request - - The requested psm
Returns:
The solution to the requested psm