From 99440a001074e819ef0ec21c473aaf828bc4fcf1 Mon Sep 17 00:00:00 2001 From: cmrizhangzhen <781953240@qq.com> Date: Fri, 15 Jul 2022 17:36:43 +0800 Subject: change package Issue-ID: USECASEUI-696 Signed-off-by: cmrizhangzhen <781953240@qq.com> Change-Id: I7c79dc46ec1bbe05898a02068733a4e5b099b39a --- .../CLLBusinessIntentManagementFunction.java | 35 +++++++++++ .../intentModuleImpl/ActuationModuleImpl.java | 48 +++++++++++++++ .../intentModuleImpl/DecisoinModuleImpl.java | 54 +++++++++++++++++ .../intentModuleImpl/KnownledgeModuleImpl.java | 36 +++++++++++ .../CLLBusinessIntentManagementFunction.java | 35 ----------- .../intentModuleImpl/ActuationModuleImpl.java | 48 --------------- .../intentModuleImpl/DecisoinModuleImpl.java | 54 ----------------- .../intentModuleImpl/KnownledgeModuleImpl.java | 36 ----------- .../IntentManagementFunction.java | 29 +++++++++ .../intentModule/ActuationModule.java | 28 +++++++++ .../intentModule/DecisionModule.java | 38 ++++++++++++ .../intentModule/KnowledgeModule.java | 24 ++++++++ .../IntentDefinitionService.java | 45 ++++++++++++++ .../IntentDetectionService.java | 45 ++++++++++++++ .../IntentDistributionService.java | 45 ++++++++++++++ .../IntentInvestigationService.java | 46 +++++++++++++++ .../IntentOperationService.java | 49 +++++++++++++++ .../intentProcessService/IntentProcessService.java | 69 ++++++++++++++++++++++ .../intentModule/ActuationModule.java | 28 --------- .../intentModule/DecisionModule.java | 38 ------------ .../intentModule/KnowledgeModule.java | 24 -------- .../IntentDefinitionService.java | 44 -------------- .../IntentDetectionService.java | 44 -------------- .../IntentDistributionService.java | 44 -------------- .../IntentInvestigationService.java | 45 -------------- .../IntentManagementFunction.java | 29 --------- .../IntentOperationService.java | 48 --------------- .../intentProcessService/IntentProcessService.java | 68 --------------------- 28 files changed, 591 insertions(+), 585 deletions(-) create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/CLLBusinessIntentManagementFunction.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/ActuationModuleImpl.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/DecisoinModuleImpl.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/KnownledgeModuleImpl.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/CLLBusinessIntentManagementFunction.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/ActuationModuleImpl.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/DecisoinModuleImpl.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/KnownledgeModuleImpl.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/IntentManagementFunction.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/ActuationModule.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/DecisionModule.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/KnowledgeModule.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDefinitionService.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDetectionService.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDistributionService.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentInvestigationService.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentOperationService.java create mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentProcessService.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/ActuationModule.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/DecisionModule.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/KnowledgeModule.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDefinitionService.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDetectionService.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDistributionService.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentInvestigationService.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentManagementFunction.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentOperationService.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentProcessService.java (limited to 'intentanalysis/src/main/java') diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/CLLBusinessIntentManagementFunction.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/CLLBusinessIntentManagementFunction.java new file mode 100644 index 0000000..8713f23 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/CLLBusinessIntentManagementFunction.java @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.CLLBusinessIntentMgt; + + +import lombok.Data; +import org.onap.usecaseui.intentanalysis.CLLBusinessIntentMgt.intentModuleImpl.ActuationModuleImpl; +import org.onap.usecaseui.intentanalysis.CLLBusinessIntentMgt.intentModuleImpl.DecisoinModuleImpl; +import org.onap.usecaseui.intentanalysis.CLLBusinessIntentMgt.intentModuleImpl.KnownledgeModuleImpl; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.ActuationModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.DecisionModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.KnowledgeModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; + +@Data +public class CLLBusinessIntentManagementFunction extends IntentManagementFunction { + private ActuationModule actuationModule = new ActuationModuleImpl(); + private DecisionModule decisoinModule = new DecisoinModuleImpl(); + private KnowledgeModule knowledgeModule = new KnownledgeModuleImpl(); + + +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/ActuationModuleImpl.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/ActuationModuleImpl.java new file mode 100644 index 0000000..8f9aa87 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/ActuationModuleImpl.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.CLLBusinessIntentMgt.intentModuleImpl; + + +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.ActuationModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentProcessService.IntentProcessService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class ActuationModuleImpl implements ActuationModule { + @Autowired + IntentProcessService processService; + + @Override + public void sendToIntentHandler(IntentManagementFunction intentHandler) { + processService.setIntentRole(intentHandler, null); + processService.intentProcess(); + } + + @Override + public void sendToNonIntentHandler() { + } + + @Override + public void interactWithIntentHandle() { + + } + + @Override + public void saveIntentToDb() { + } +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/DecisoinModuleImpl.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/DecisoinModuleImpl.java new file mode 100644 index 0000000..b2e5410 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/DecisoinModuleImpl.java @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.CLLBusinessIntentMgt.intentModuleImpl; + + +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.DecisionModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.springframework.stereotype.Service; + +@Service +public class DecisoinModuleImpl implements DecisionModule { + @Override + public void determineUltimateGoal() {} + + @Override + public IntentManagementFunction exploreIntentHandlers() { + + return null; + + } + + @Override + public void intentDefinition() {} + + @Override + public void decideSuitableAction() {} + + @Override + public boolean needDecompostion() { + return false; + } + + @Override + public void intentDecomposition() {} + + @Override + public void intentOrchestration() {} + + @Override + public void interactWithTemplateDb() {} +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/KnownledgeModuleImpl.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/KnownledgeModuleImpl.java new file mode 100644 index 0000000..ea663d5 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessIntentMgt/intentModuleImpl/KnownledgeModuleImpl.java @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.CLLBusinessIntentMgt.intentModuleImpl; + +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.KnowledgeModule; +import org.springframework.stereotype.Service; + +@Service +public class KnownledgeModuleImpl implements KnowledgeModule { + @Override + public void intentResolution() {} + + @Override + public void intentReportResolution() {} + + @Override + public void getSystemStatus() {} + + @Override + public void interactWithIntentOwner() { + + } +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/CLLBusinessIntentManagementFunction.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/CLLBusinessIntentManagementFunction.java deleted file mode 100644 index 2cf0de1..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/CLLBusinessIntentManagementFunction.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.CLLBusinessService; - - -import lombok.Data; -import org.onap.usecaseui.intentanalysis.CLLBusinessService.intentModuleImpl.ActuationModuleImpl; -import org.onap.usecaseui.intentanalysis.CLLBusinessService.intentModuleImpl.DecisoinModuleImpl; -import org.onap.usecaseui.intentanalysis.CLLBusinessService.intentModuleImpl.KnownledgeModuleImpl; -import org.onap.usecaseui.intentanalysis.intentModule.ActuationModule; -import org.onap.usecaseui.intentanalysis.intentModule.DecisionModule; -import org.onap.usecaseui.intentanalysis.intentModule.KnowledgeModule; -import org.onap.usecaseui.intentanalysis.intentProcessService.IntentManagementFunction; - -@Data -public class CLLBusinessIntentManagementFunction extends IntentManagementFunction { - private ActuationModule actuationModule = new ActuationModuleImpl(); - private DecisionModule decisoinModule = new DecisoinModuleImpl(); - private KnowledgeModule knowledgeModule = new KnownledgeModuleImpl(); - - -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/ActuationModuleImpl.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/ActuationModuleImpl.java deleted file mode 100644 index 1cbdd77..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/ActuationModuleImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.CLLBusinessService.intentModuleImpl; - - -import org.onap.usecaseui.intentanalysis.intentModule.ActuationModule; -import org.onap.usecaseui.intentanalysis.intentProcessService.IntentManagementFunction; -import org.onap.usecaseui.intentanalysis.intentProcessService.IntentProcessService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -@Service -public class ActuationModuleImpl implements ActuationModule { - @Autowired - IntentProcessService processService; - - @Override - public void sendToIntentHandler(IntentManagementFunction intentHandler) { - processService.setIntentRole(intentHandler, null); - processService.intentProcess(); - } - - @Override - public void sendToNonIntentHandler() { - } - - @Override - public void interactWithIntentHandle() { - - } - - @Override - public void saveIntentToDb() { - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/DecisoinModuleImpl.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/DecisoinModuleImpl.java deleted file mode 100644 index 495bf70..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/DecisoinModuleImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.CLLBusinessService.intentModuleImpl; - - -import org.onap.usecaseui.intentanalysis.intentModule.DecisionModule; -import org.onap.usecaseui.intentanalysis.intentProcessService.IntentManagementFunction; -import org.springframework.stereotype.Service; - -@Service -public class DecisoinModuleImpl implements DecisionModule { - @Override - public void determineUltimateGoal() {} - - @Override - public IntentManagementFunction exploreIntentHandlers() { - - return null; - - } - - @Override - public void intentDefinition() {} - - @Override - public void decideSuitableAction() {} - - @Override - public boolean needDecompostion() { - return false; - } - - @Override - public void intentDecomposition() {} - - @Override - public void intentOrchestration() {} - - @Override - public void interactWithTemplateDb() {} -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/KnownledgeModuleImpl.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/KnownledgeModuleImpl.java deleted file mode 100644 index be45637..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/CLLBusinessService/intentModuleImpl/KnownledgeModuleImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.CLLBusinessService.intentModuleImpl; - -import org.onap.usecaseui.intentanalysis.intentModule.KnowledgeModule; -import org.springframework.stereotype.Service; - -@Service -public class KnownledgeModuleImpl implements KnowledgeModule { - @Override - public void intentResolution() {} - - @Override - public void intentReportResolution() {} - - @Override - public void getSystemStatus() {} - - @Override - public void interactWithIntentOwner() { - - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/IntentManagementFunction.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/IntentManagementFunction.java new file mode 100644 index 0000000..ec41f3f --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/IntentManagementFunction.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService; + + +import lombok.Data; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.ActuationModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.DecisionModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.KnowledgeModule; + +@Data +public class IntentManagementFunction { + private ActuationModule actuationModule; + private DecisionModule decisionModule; + private KnowledgeModule knowledgeModule; +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/ActuationModule.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/ActuationModule.java new file mode 100644 index 0000000..34ae57c --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/ActuationModule.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentModule; + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; + +public interface ActuationModule { + //actuationModel & knownledgeModel interact + void sendToIntentHandler(IntentManagementFunction IntentHandler); + void sendToNonIntentHandler();//直接操作 + void interactWithIntentHandle(); + //Save intent information to the intent instance database + void saveIntentToDb(); + +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/DecisionModule.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/DecisionModule.java new file mode 100644 index 0000000..1762e63 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/DecisionModule.java @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentModule; + + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; + +public interface DecisionModule { + void determineUltimateGoal();// + IntentManagementFunction exploreIntentHandlers(); + void intentDefinition(); + void decideSuitableAction(); + + //confirm whether the intent needs to be decomposed and orchestrated + public boolean needDecompostion(); + + //call decomposition module + public void intentDecomposition(); + + //call orchestration module + public void intentOrchestration(); + + + public void interactWithTemplateDb(); +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/KnowledgeModule.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/KnowledgeModule.java new file mode 100644 index 0000000..2a0032a --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentModule/KnowledgeModule.java @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentModule; + +public interface KnowledgeModule { + void intentResolution(); + void intentReportResolution(); + void getSystemStatus(); + void interactWithIntentOwner(); + //actuationModel & knownledgeModel interact +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDefinitionService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDefinitionService.java new file mode 100644 index 0000000..9407f91 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDefinitionService.java @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentProcessService; + + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.ActuationModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.DecisionModule; +import org.springframework.stereotype.Service; + +@Service +public class IntentDefinitionService { + + private IntentManagementFunction intentHandler; + private IntentManagementFunction intentOwner; + + public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler) { + if (intentOwner != null) { + this.intentOwner = intentOwner; + } + if (intentHandler != null) { + this.intentHandler = intentHandler; + } + } + + public void definitionPorcess() { + DecisionModule intentDecisionModule = intentOwner.getDecisionModule(); + ActuationModule intentActuationModule = intentOwner.getActuationModule(); + intentDecisionModule.intentDefinition(); + intentActuationModule.saveIntentToDb(); + } +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDetectionService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDetectionService.java new file mode 100644 index 0000000..0232620 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDetectionService.java @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentProcessService; + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.KnowledgeModule; +import org.springframework.stereotype.Service; + +@Service +public class IntentDetectionService { + + private IntentManagementFunction intentHandler; + private IntentManagementFunction intentOwner; + + public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ + if (intentOwner!= null){ + this.intentOwner = intentOwner; + } + if (intentHandler!= null){ + this.intentHandler= intentHandler; + } + } + + public void detectionProcess() { + KnowledgeModule ownerKnowledgeModule = intentOwner.getKnowledgeModule(); + ownerKnowledgeModule.intentResolution(); + ownerKnowledgeModule.intentReportResolution(); + ownerKnowledgeModule.getSystemStatus(); + ownerKnowledgeModule.interactWithIntentOwner(); + + } +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDistributionService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDistributionService.java new file mode 100644 index 0000000..eb58546 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentDistributionService.java @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentProcessService; + + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.ActuationModule; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class IntentDistributionService { + @Autowired + private IntentManagementFunction intentHandler; + private IntentManagementFunction intentOwner; + + public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ + if (intentOwner!= null){ + this.intentOwner = intentOwner; + } + if (intentHandler!= null){ + this.intentHandler= intentHandler; + } + } + + public void distributionProcess() { + ActuationModule intentActuationModule = intentHandler.getActuationModule(); + + intentActuationModule.sendToIntentHandler(intentHandler); + } + +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentInvestigationService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentInvestigationService.java new file mode 100644 index 0000000..2dc740a --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentInvestigationService.java @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentProcessService; + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.DecisionModule; +import org.springframework.stereotype.Service; + +@Service +public class IntentInvestigationService { + private IntentManagementFunction intentHandler; + private IntentManagementFunction intentOwner; + + public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ + if (intentOwner!= null){ + this.intentOwner = intentOwner; + } + if (intentHandler!= null){ + this.intentHandler= intentHandler; + } + } + + public void investigationProcess() { + DecisionModule intentDecisionModule = intentOwner.getDecisionModule(); + intentDecisionModule.needDecompostion(); + intentDecisionModule.intentDecomposition(); + intentDecisionModule.intentOrchestration(); + intentDecisionModule.decideSuitableAction(); + intentDecisionModule.exploreIntentHandlers();//返回handler + } + + +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentOperationService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentOperationService.java new file mode 100644 index 0000000..6ffbc2d --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentOperationService.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentProcessService; + + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.ActuationModule; +import org.onap.usecaseui.intentanalysis.intentBaseService.intentModule.DecisionModule; +import org.springframework.stereotype.Service; + +@Service +public class IntentOperationService { + + private IntentManagementFunction intentHandler; + private IntentManagementFunction intentOwner; + + public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ + if (intentOwner!= null){ + this.intentOwner = intentOwner; + } + if (intentHandler!= null){ + this.intentHandler= intentHandler; + } + } + + public void operationProcess() { + DecisionModule intentDecisionModule = intentOwner.getDecisionModule(); + ActuationModule intentActuationModule = intentOwner.getActuationModule(); + + intentDecisionModule.interactWithTemplateDb(); + intentActuationModule.interactWithIntentHandle(); + intentActuationModule.sendToIntentHandler(intentHandler); + + intentActuationModule.sendToNonIntentHandler(); + } +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentProcessService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentProcessService.java new file mode 100644 index 0000000..aadbda0 --- /dev/null +++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentBaseService/intentProcessService/IntentProcessService.java @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.intentanalysis.intentBaseService.intentProcessService; + +import org.onap.usecaseui.intentanalysis.intentBaseService.IntentManagementFunction; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class IntentProcessService { + @Autowired + IntentDetectionService intentDetectionServiceImpl; + @Autowired + IntentInvestigationService intentInvestigationService; + @Autowired + IntentDefinitionService intentDefinitionService; + @Autowired + IntentDistributionService intentDistributionService; + @Autowired + IntentOperationService intentOperationService; + + private IntentManagementFunction intentOwner; + private IntentManagementFunction intentHandler; + + + public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ + if (intentOwner!= null){ + this.intentOwner = intentOwner; + } + if (intentHandler!= null){ + this.intentHandler= intentHandler; + } + } + public void intentProcess() { + intentDetectionServiceImpl.setIntentRole(intentOwner,intentHandler); + intentDetectionServiceImpl.detectionProcess(); + + //investigation process + intentInvestigationService.setIntentRole(intentOwner,intentHandler); + intentInvestigationService.investigationProcess();//List? + + //definition process + intentDefinitionService.setIntentRole(intentOwner,intentHandler); + intentDefinitionService.definitionPorcess(); + + //distribution process + intentDistributionService.setIntentRole(intentOwner,intentHandler); + intentDistributionService.distributionProcess(); + + //operation process + intentOperationService.setIntentRole(intentOwner,intentHandler); + intentOperationService.operationProcess(); + } + + +} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/ActuationModule.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/ActuationModule.java deleted file mode 100644 index 5a3c1f6..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/ActuationModule.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentModule; - -import org.onap.usecaseui.intentanalysis.intentProcessService.IntentManagementFunction; - -public interface ActuationModule { - //actuationModel & knownledgeModel interact - void sendToIntentHandler(IntentManagementFunction IntentHandler); - void sendToNonIntentHandler();//直接操作 - void interactWithIntentHandle(); - //Save intent information to the intent instance database - void saveIntentToDb(); - -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/DecisionModule.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/DecisionModule.java deleted file mode 100644 index edbae69..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/DecisionModule.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentModule; - - -import org.onap.usecaseui.intentanalysis.intentProcessService.IntentManagementFunction; - -public interface DecisionModule { - void determineUltimateGoal();// - IntentManagementFunction exploreIntentHandlers(); - void intentDefinition(); - void decideSuitableAction(); - - //confirm whether the intent needs to be decomposed and orchestrated - public boolean needDecompostion(); - - //call decomposition module - public void intentDecomposition(); - - //call orchestration module - public void intentOrchestration(); - - - public void interactWithTemplateDb(); -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/KnowledgeModule.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/KnowledgeModule.java deleted file mode 100644 index 0b95a26..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentModule/KnowledgeModule.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentModule; - -public interface KnowledgeModule { - void intentResolution(); - void intentReportResolution(); - void getSystemStatus(); - void interactWithIntentOwner(); - //actuationModel & knownledgeModel interact -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDefinitionService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDefinitionService.java deleted file mode 100644 index cd6af28..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDefinitionService.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentProcessService; - - -import org.onap.usecaseui.intentanalysis.intentModule.ActuationModule; -import org.onap.usecaseui.intentanalysis.intentModule.DecisionModule; -import org.springframework.stereotype.Service; - -@Service -public class IntentDefinitionService { - - private IntentManagementFunction intentHandler; - private IntentManagementFunction intentOwner; - - public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler) { - if (intentOwner != null) { - this.intentOwner = intentOwner; - } - if (intentHandler != null) { - this.intentHandler = intentHandler; - } - } - - public void definitionPorcess() { - DecisionModule intentDecisionModule = intentOwner.getDecisionModule(); - ActuationModule intentActuationModule = intentOwner.getActuationModule(); - intentDecisionModule.intentDefinition(); - intentActuationModule.saveIntentToDb(); - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDetectionService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDetectionService.java deleted file mode 100644 index ada67ce..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDetectionService.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentProcessService; - -import org.onap.usecaseui.intentanalysis.intentModule.KnowledgeModule; -import org.springframework.stereotype.Service; - -@Service -public class IntentDetectionService { - - private IntentManagementFunction intentHandler; - private IntentManagementFunction intentOwner; - - public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ - if (intentOwner!= null){ - this.intentOwner = intentOwner; - } - if (intentHandler!= null){ - this.intentHandler= intentHandler; - } - } - - public void detectionProcess() { - KnowledgeModule ownerKnowledgeModule = intentOwner.getKnowledgeModule(); - ownerKnowledgeModule.intentResolution(); - ownerKnowledgeModule.intentReportResolution(); - ownerKnowledgeModule.getSystemStatus(); - ownerKnowledgeModule.interactWithIntentOwner(); - - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDistributionService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDistributionService.java deleted file mode 100644 index 535214f..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentDistributionService.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentProcessService; - - -import org.onap.usecaseui.intentanalysis.intentModule.ActuationModule; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -@Service -public class IntentDistributionService { - @Autowired - private IntentManagementFunction intentHandler; - private IntentManagementFunction intentOwner; - - public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ - if (intentOwner!= null){ - this.intentOwner = intentOwner; - } - if (intentHandler!= null){ - this.intentHandler= intentHandler; - } - } - - public void distributionProcess() { - ActuationModule intentActuationModule = intentHandler.getActuationModule(); - - intentActuationModule.sendToIntentHandler(intentHandler); - } - -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentInvestigationService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentInvestigationService.java deleted file mode 100644 index 9229804..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentInvestigationService.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentProcessService; - -import org.onap.usecaseui.intentanalysis.intentModule.DecisionModule; -import org.springframework.stereotype.Service; - -@Service -public class IntentInvestigationService { - private IntentManagementFunction intentHandler; - private IntentManagementFunction intentOwner; - - public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ - if (intentOwner!= null){ - this.intentOwner = intentOwner; - } - if (intentHandler!= null){ - this.intentHandler= intentHandler; - } - } - - public void investigationProcess() { - DecisionModule intentDecisionModule = intentOwner.getDecisionModule(); - intentDecisionModule.needDecompostion(); - intentDecisionModule.intentDecomposition(); - intentDecisionModule.intentOrchestration(); - intentDecisionModule.decideSuitableAction(); - intentDecisionModule.exploreIntentHandlers();//返回handler - } - - -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentManagementFunction.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentManagementFunction.java deleted file mode 100644 index 18770a3..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentManagementFunction.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentProcessService; - - -import lombok.Data; -import org.onap.usecaseui.intentanalysis.intentModule.ActuationModule; -import org.onap.usecaseui.intentanalysis.intentModule.DecisionModule; -import org.onap.usecaseui.intentanalysis.intentModule.KnowledgeModule; - -@Data -public class IntentManagementFunction { - private ActuationModule actuationModule; - private DecisionModule decisionModule; - private KnowledgeModule knowledgeModule; -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentOperationService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentOperationService.java deleted file mode 100644 index 61fbc86..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentOperationService.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentProcessService; - - -import org.onap.usecaseui.intentanalysis.intentModule.ActuationModule; -import org.onap.usecaseui.intentanalysis.intentModule.DecisionModule; -import org.springframework.stereotype.Service; - -@Service -public class IntentOperationService { - - private IntentManagementFunction intentHandler; - private IntentManagementFunction intentOwner; - - public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ - if (intentOwner!= null){ - this.intentOwner = intentOwner; - } - if (intentHandler!= null){ - this.intentHandler= intentHandler; - } - } - - public void operationProcess() { - DecisionModule intentDecisionModule = intentOwner.getDecisionModule(); - ActuationModule intentActuationModule = intentOwner.getActuationModule(); - - intentDecisionModule.interactWithTemplateDb(); - intentActuationModule.interactWithIntentHandle(); - intentActuationModule.sendToIntentHandler(intentHandler); - - intentActuationModule.sendToNonIntentHandler(); - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentProcessService.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentProcessService.java deleted file mode 100644 index 4a1a090..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/intentProcessService/IntentProcessService.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.usecaseui.intentanalysis.intentProcessService; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -@Service -public class IntentProcessService { - @Autowired - IntentDetectionService intentDetectionServiceImpl; - @Autowired - IntentInvestigationService intentInvestigationService; - @Autowired - IntentDefinitionService intentDefinitionService; - @Autowired - IntentDistributionService intentDistributionService; - @Autowired - IntentOperationService intentOperationService; - - private IntentManagementFunction intentOwner; - private IntentManagementFunction intentHandler; - - - public void setIntentRole(IntentManagementFunction intentOwner, IntentManagementFunction intentHandler){ - if (intentOwner!= null){ - this.intentOwner = intentOwner; - } - if (intentHandler!= null){ - this.intentHandler= intentHandler; - } - } - public void intentProcess() { - intentDetectionServiceImpl.setIntentRole(intentOwner,intentHandler); - intentDetectionServiceImpl.detectionProcess(); - - //investigation process - intentInvestigationService.setIntentRole(intentOwner,intentHandler); - intentInvestigationService.investigationProcess();//List? - - //definition process - intentDefinitionService.setIntentRole(intentOwner,intentHandler); - intentDefinitionService.definitionPorcess(); - - //distribution process - intentDistributionService.setIntentRole(intentOwner,intentHandler); - intentDistributionService.distributionProcess(); - - //operation process - intentOperationService.setIntentRole(intentOwner,intentHandler); - intentOperationService.operationProcess(); - } - - -} -- cgit 1.2.3-korg