Goal-driven automated composition of software components is an important problem with applications in Web service composition and stream processing systems. The popular approach to address this problem is to build the composition automatically using Artificial Intelligence planning. However, it is shown that some of these popular planning approaches may neither be feasible nor scalable for many real large-scale flowbased applications. Recent advances have proven that the automated composition problem can take advantage of expert knowledge restricting the ways in which different reusable components can be composed. This knowledge can be represented using an extensible composition template or pattern. In prior work, a flow pattern language called Cascade and its corresponding specialized planner have shown the best performance in these domains. In this paper, we propose to address this problem using Hierarchical Task Network (HTN) planning. To this end, we propose an automated approach of creating an HTN-based problem from the Cascade representation of the flow patterns. The resulting technique not only allows us to use the HTN planning paradigm and its many advantages including added expressivity but also enables optimization and customization of composition with respect to preferences and constraints. Further, we propose and develop a lookahead heuristic and show that it significantly reduces the planning time. We have performed extensive experimentation in the context of the stream processing application and evaluated applicability and performance of our approach.
[1]
Octavian Udrea,et al.
Mashup-based information retrieval for domain experts
,
2009,
CIKM.
[2]
Jorge A. Baier,et al.
HTN Planning with Preferences
,
2009,
IJCAI.
[3]
Patrik Haslum,et al.
Deterministic planning in the fifth international planning competition: PDDL3 and experimental evaluation of the planners
,
2009,
Artif. Intell..
[4]
Philip S. Yu,et al.
SPADE: the system s declarative stream processing engine
,
2008,
SIGMOD Conference.
[5]
Stuart J. Russell,et al.
Angelic Semantics for High-Level Actions
,
2007,
ICAPS.
[6]
Deborah L. McGuinness,et al.
Bringing Semantics to Web Services with OWL-S
,
2007,
World Wide Web.
[7]
Jorge A. Baier,et al.
A Heuristic Search Approach to Planning with Temporally Extended Preferences
,
2007,
IJCAI.
[8]
Anton Riabov,et al.
Scalable Planning for Distributed Stream Processing Systems
,
2006,
ICAPS.
[9]
Annapaola Marconi,et al.
Automated Composition of Web Services by Planning at the Knowledge Level
,
2005,
IJCAI.
[10]
Anton Riabov,et al.
Planning for Stream Processing Systems
,
2005,
AAAI.
[11]
James A. Hendler,et al.
HTN planning for Web Service composition using SHOP2
,
2004,
J. Web Semant..
[12]
Paolo Traverso,et al.
Hierarchical Task Network Planning
,
2004
.
[13]
Dana S. Nau,et al.
SHOP2: An HTN Planning System
,
2003,
J. Artif. Intell. Res..
[14]
Tran Cao Son,et al.
Adapting Golog for Composition of Semantic Web Services
,
2002,
KR.