DirectiveService.java 2.14 KB
package com.bsth.vehicle.directive.service;


import java.util.List;
import java.util.Map;

import com.bsth.entity.realcontrol.ScheduleRealInfo;
import com.bsth.service.BaseService;
import com.bsth.vehicle.directive.entity.Directive60;
import com.bsth.vehicle.directive.entity.Directive80;

public interface DirectiveService extends BaseService<Directive60, Integer>{
	
	/**
	 * 
	 * @Title: send60Phrase 
	 * @Description: TODO(60短语下发) 
	 * @param @param nbbm 车辆内部编码
	 * @param @param text 短语
	 * @return int    返回类型 
	 * @throws
	 */
	int send60Phrase(String nbbm, String text, String sender);
	
	/**
	 * 
	 * @Title: send60Dispatch 
	 * @Description: TODO(调度指令下发) 
	 * @param @param sch  要下发的班次
	 * @param @param finish  已完成的班次数
	 * @throws
	 */
	int send60Dispatch(ScheduleRealInfo sch, int finish, String sender);
	
	/**
	 * 
	 * @Title: send60Dispatch 
	 * @Description: TODO(调度指令下发) 
	 * @param @param id 班次ID
	 * @throws
	 */
	int send60Dispatch(Long id, String sender);
	
	//60营运指令
	int send60Operation(String nbbm, int state, int upDown, ScheduleRealInfo sch, String sender);
	
	/**
	 * 
	 * @Title: lineChange 
	 * @Description: TODO(线路切换) 
	 * @param @param nbbm 车辆内部编码
	 * @param @param lineId 新线路编码
	 * @throws
	 */
	int lineChange(String nbbm, Integer lineId, String sender);
	
	/**
	 * 
	 * @Title: upDownChange 
	 * @Description: TODO(切换上下行) 
	 * @param @param nbbm 车辆内部编码
	 * @param @param upDonw 上下行 0 上行  1 下行
	 * @throws
	 */
	int upDownChange(String nbbm, Integer upDown, String sender);
	
	/**
	 * 
	 * @Title: sendDirectiveState 
	 * @Description: TODO(向页面推送班次指令状态) 
	 * @throws
	 */
	void sendDirectiveToPage(ScheduleRealInfo sch);

	Map<String, List<Directive80>> findNoCofm80(String lineCodes);

	Map<String, Object> reply80(int id, int reply);

	Map<String, Object> findDirective(String nbbm, int dType, int page, int size);
	
	String createDeviceRefreshData(String deviceId, Integer lineId);
}