CoPS.CheckUpExample
Class CheckUpDecomposer

java.lang.Object
  extended byAgent
      extended byCoPS.agents.CoPSAgent
          extended byCoPS.agents.CoPSDecomposer
              extended byCoPS.CheckUpExample.CheckUpDecomposer

public class CheckUpDecomposer
extends CoPSDecomposer

A class extending CoPSDecomposer, which implements a decomposer in our Checkup example application.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class CoPS.agents.CoPSDecomposer
library, teamID
 
Constructor Summary
CheckUpDecomposer()
           
 
Method Summary
protected  boolean correctFormat(java.lang.String task)
          Dummy method always returning true.
protected  TMST decomposeProblem(java.lang.String task)
          Dummy method, always returning the stored library
 ServiceDescription setServiceDescription()
          Method overridden from the class CoPSAgent.
protected  TMST setTaskStructureLibrary()
          Method for initializing the knowledge model (task structure tree) of a decomposer.
 
Methods inherited from class CoPS.agents.CoPSDecomposer
getTeamID, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckUpDecomposer

public CheckUpDecomposer()
Method Detail

decomposeProblem

protected TMST decomposeProblem(java.lang.String task)
                         throws NotAbleToDecomposeTaskException
Dummy method, always returning the stored library

Specified by:
decomposeProblem in class CoPSDecomposer
Returns:
The stored TMST.
Throws:
NotAbleToDecomposeTaskException

correctFormat

protected boolean correctFormat(java.lang.String task)
Dummy method always returning true.

Specified by:
correctFormat in class CoPSDecomposer
Returns:
True.

setTaskStructureLibrary

protected TMST setTaskStructureLibrary()
Description copied from class: CoPSDecomposer
Method for initializing the knowledge model (task structure tree) of a decomposer. Called in the setup() method.

Specified by:
setTaskStructureLibrary in class CoPSDecomposer

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.