Files
auto-solution/auto-solution-rule/src/main/java/com/solution/rule/service/FireRuleService.java

71 lines
1.8 KiB
Java

package com.solution.rule.service;
import com.solution.rule.domain.BasicPlatform;
import com.solution.rule.domain.FireRuleExecuteDTO;
import com.solution.rule.domain.Platform;
import com.solution.rule.domain.PlatformComponent;
import com.solution.rule.domain.simplerulepojo.Task;
import com.solution.rule.domain.ultimately.dto.FireRuleInputDTO;
import com.solution.rule.domain.ultimately.vo.FireRuleOutputVO;
import com.solution.rule.domain.vo.PlatformComponentNamesVO;
import com.solution.rule.domain.vo.PlatformWeaponAggregateVO;
import java.util.List;
public interface FireRuleService {
/**
* 开始执行规则匹配
* @param fireRuleExecuteDTO
* @return
*/
List<PlatformWeaponAggregateVO> execute(FireRuleExecuteDTO fireRuleExecuteDTO);
List<PlatformWeaponAggregateVO> getWeapon();
/**
* 获取所有武器平台和组件
* @return
*/
List<PlatformComponentNamesVO> getPlatformComponentNames();
/**
* 获取通信组件的所有平台和组件
* @param scenarioId
* @return
*/
List<PlatformComponentNamesVO> getCommPlatformComponentNames(Integer scenarioId);
/**
* 根据平台id获取平台下所有组件
* @param platformId
* @return
*/
List<PlatformComponent> getComponents(Integer platformId);
/**
* 根据场景id获取所有平台及其组件
* @param scenarioId
* @return
*/
List<Platform> findPlatformComponents(Integer scenarioId);
List<Platform> findAllPlatformComponents();
List<BasicPlatform> findAllBasicPlatformComponents();
/**
* 开始执行规则匹配
* @param task
* @return
*/
Task executeTask(Task task);
/**
* 火力规则
* @param task
* @return
*/
FireRuleOutputVO rule(FireRuleInputDTO task);
}