DirectiveService.java 2.28 KB
package com.bsth.service.directive;


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

import com.bsth.entity.directive.D60;
import com.bsth.entity.directive.D64;
import com.bsth.entity.directive.D80;
import com.bsth.entity.directive.DC0_A3;
import com.bsth.entity.realcontrol.ScheduleRealInfo;
import com.bsth.service.BaseService;

public interface DirectiveService extends BaseService<D60, 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, String 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 sendD60ToPage(ScheduleRealInfo sch);

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

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

	Map<String, Object> findDirective(String nbbm, int dType, int page, int size);

	Map<String, Object> findAll80(Map<String, Object> map, int page, int size);
	
	D64 save64(D64 d64);

	int sendC0A4(String nbbm);

	int sendC0A3(DC0_A3 c0a4);

	int sendC0A5(String json);
}