1 package org.onap.usecaseui.intentanalysis.intentProcessService;
3 import org.onap.usecaseui.intentanalysis.intentModule.DecisionModule;
4 import org.springframework.stereotype.Service;
7 public class IntentInvestigationService {
8 private Function intentHandler;
9 private Function intentOwner;
11 public void setIntentRole(Function intentOwner,Function intentHandler){
12 if (intentOwner!= null){
13 this.intentOwner = intentOwner;
15 if (intentHandler!= null){
16 this.intentHandler= intentHandler;
20 public void investigationProcess() {
21 DecisionModule intentDecisionModule = intentOwner.getDecisionModule();
22 intentDecisionModule.needDecompostion();
23 intentDecisionModule.intentDecomposition();
24 intentDecisionModule.intentOrchestration();
25 intentDecisionModule.decideSuitableAction();
26 intentDecisionModule.exploreIntentHandlers();//返回handler