001 /* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016 017package com.pax.dal; 018 019import com.pax.dal.exceptions.ChannelException; 020 021public interface IChannel { 022 /** 023 * <div class="zh"> 使能 </div> 024 * 025 * <div class="en"> enable </div> 026 * 027 * @throws ChannelException 028 */ 029 public void enable() throws ChannelException; 030 031 /** 032 * <div class="zh"> 禁止 </div> 033 * 034 * <div class="en"> disable </div> 035 * 036 * @throws ChannelException 037 */ 038 public void disable() throws ChannelException; 039 040 /** 041 * <div class="zh"> 是否可用 </div> <div class="en"> is enabled </div> 042 * 043 * @return <div class="zh"> true-可用; false-不可用 </div> <div class="en"> true-enable; false-disable </div> 044 */ 045 public boolean isEnabled(); 046}