CoPS.CheckUpExample
Class CheckUpDecomposer
java.lang.Object
Agent
CoPS.agents.CoPSAgent
CoPS.agents.CoPSDecomposer
CoPS.CheckUpExample.CheckUpDecomposer
- public class CheckUpDecomposer
- extends CoPSDecomposer
A class extending CoPSDecomposer, which implements a decomposer in
our Checkup example application.
- See Also:
- Serialized Form
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckUpDecomposer
public CheckUpDecomposer()
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.