blob: 5b4548761f6db77b6a06a6749ad747c7cdb10c37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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 Function intentHandler;
private Function intentOwner;
public void setIntentRole(Function intentOwner,Function intentHandler){
if (intentOwner!= null){
this.intentOwner = intentOwner;
}
if (intentHandler!= null){
this.intentHandler= intentHandler;
}
}
public void distributionProcess() {
ActuationModule intentActuationModule = intentHandler.getActuationModule();
intentActuationModule.sendToIntentHandler(intentHandler);
}
}
|