亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? alarmchannel.java

?? 關(guān)于 RFID 讀寫器的相關(guān)內(nèi)容
?? JAVA
字號:
/*
 * Copyright (C) 2007 ETH Zurich
 *
 * This file is part of Fosstrak (www.fosstrak.org).
 *
 * Fosstrak is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1, as published by the Free Software Foundation.
 *
 * Fosstrak is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with Fosstrak; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

package org.fosstrak.reader.rprm.core.mgmt.alarm;

import org.fosstrak.reader.rprm.core.ReaderDevice;
import org.fosstrak.reader.rprm.core.ReaderProtocolException;
import org.fosstrak.reader.rprm.core.mgmt.agent.MgmtAgent;
import org.fosstrak.reader.rprm.core.msg.Address;
import org.fosstrak.reader.rprm.core.msg.MessagingConstants;
import org.apache.log4j.Logger;

/**
 * The <code>AlarmChannel</code> carries messages issued asynchronously by the
 * Reader to the Host. Messages on an <code>AlarmChannel</code> only flow in
 * this direction.
 */
public class AlarmChannel {
	
	/**
	 * The logger.
	 */
	private static Logger log = Logger.getLogger(AlarmChannel.class);
	
	/**
	 * The name of this alarm channel.
	 */
	private String name;
	
	/**
	 * The (host) address to which the reader will send alarms.
	 */
	private Address address;
	
	/**
	 * Create a <code>AlarmChannel</code> object with a given name. If an
	 * <code>AlarmChannel</code> object with the same name exists already, an
	 * error is returned. This is a static method. The <code>AlarmChannel</code>
	 * will implicitly be added to the list of all <code>AlarmChannels</code>
	 * kept by the <code>ReaderDevice</code> object.
	 * 
	 * @param name
	 *            The name of the <code>AlarmChannel</code> to be created.
	 * @param addr
	 *            The (host) address to which the reader will send alarms.
	 * @param readerDevice
	 *            The reader device
	 * @return The instance of the new <code>AlarmChannel</code>
	 * @throws ReaderProtocolException
	 *             The ReaderProtocolException "ERROR_OBJECT_EXISTS" is thrown
	 */
	public static AlarmChannel create(final String name, final Address addr, ReaderDevice readerDevice)
			throws ReaderProtocolException {
		// check if AlarmChannel with the same name exists
		try {
			readerDevice.getAlarmChannel(name);
		} catch (ReaderProtocolException e) {
			// create new AlarmChannel
			AlarmChannel newAlarmChannel = new AlarmChannel(name, addr);
			readerDevice.getAlarmChannels().put(name, newAlarmChannel);
			
			// register at the management agent
			MgmtAgent mgmtAgent = readerDevice.getManagementAgent();
			if (mgmtAgent.isInitialized()) {
				mgmtAgent.addAlarmChannels(new AlarmChannel[] { newAlarmChannel });
			} else {
				log
						.debug("Management agent not yet initialized: Cannot register at the management agent.");
			}
			
			return newAlarmChannel;
		}
		throw new ReaderProtocolException("ERROR_OBJECT_EXISTS",
				MessagingConstants.ERROR_OBJECT_EXISTS);
	}
	
	/**
	 * The private constructor of the <code>AlarmChannel</code>.
	 * 
	 * @param name
	 *            The name of the channel
	 * @param addr
	 *            The address of the host
	 */
	private AlarmChannel(final String name, final Address addr) {
		this.name = name;
		address = addr;
	}
	
	/**
	 * Returns the name of the <code>AlarmChannel</code> object.
	 * 
	 * @return The name of the <code>AlarmChannel</code> object
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Returns the (host) address to which this <code>AlarmChannel</code>
	 * object sends its alarms.
	 * 
	 * @return The (host) address to which this <code>AlarmChannel</code>
	 *         object sends its alarms
	 */
	public Address getAddress() {
		return address;
	}
	
	/**
	 * Sets the (host) address to which this <code>AlarmChannel</code> object
	 * sends its alarms.
	 * 
	 * @param addr
	 *            The reporting address for this <code>AlarmChannel</code>
	 */
	public void setAddress(final Address addr) {
		address = addr;
	}

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日产精品一区| 国产成人精品影视| 亚洲婷婷综合色高清在线| 日韩美一区二区三区| 7777精品伊人久久久大香线蕉经典版下载| 99久久久精品免费观看国产蜜| 国产大片一区二区| 成人午夜伦理影院| 99精品黄色片免费大全| 北条麻妃一区二区三区| 99九九99九九九视频精品| aaa亚洲精品| 欧美午夜精品久久久久久孕妇| 欧美综合欧美视频| 日韩一区二区影院| 久久色.com| 欧美国产精品劲爆| 亚洲乱码中文字幕| 亚洲成人动漫在线免费观看| 日本视频一区二区三区| 久久99精品久久久久久久久久久久| 毛片不卡一区二区| 粉嫩aⅴ一区二区三区四区| 91丨porny丨国产| 4438成人网| 国产人成亚洲第一网站在线播放| 综合久久国产九一剧情麻豆| 亚洲韩国精品一区| 久久91精品国产91久久小草| 成人免费毛片a| 69堂成人精品免费视频| 久久久不卡影院| 亚洲精品免费在线| 国产一区999| 91成人免费电影| 久久久久久免费毛片精品| 亚洲欧美日韩国产综合| 奇米影视在线99精品| 99国产一区二区三精品乱码| 日韩一级片在线观看| 中文字幕一区二区5566日韩| 五月婷婷久久丁香| kk眼镜猥琐国模调教系列一区二区| 欧美亚洲尤物久久| 国产日产精品一区| 麻豆一区二区三区| 在线亚洲免费视频| 国产日产欧美一区二区视频| 日本女人一区二区三区| 97se亚洲国产综合自在线观| 精品国产一区二区三区忘忧草| 一区二区三区不卡在线观看| 国产麻豆精品95视频| 91麻豆精品国产91久久久| 成人免费在线观看入口| 国产精品一区二区在线看| 欧美狂野另类xxxxoooo| 亚洲男人的天堂在线观看| 国模娜娜一区二区三区| 日韩欧美一区二区三区在线| 一区二区三区在线视频观看58| 成人精品国产一区二区4080| 日韩精品在线一区| 日韩黄色免费电影| 在线观看91视频| 亚洲乱码一区二区三区在线观看| 成人一区二区三区| 国产亚洲欧美在线| 国产一区二区影院| 26uuu亚洲综合色欧美 | 岛国一区二区三区| 精品久久久久久综合日本欧美| 同产精品九九九| 欧美色中文字幕| 亚洲福利视频一区二区| 在线一区二区三区四区五区 | 日韩精品一区二区三区中文精品| 亚洲已满18点击进入久久| 一本久久a久久精品亚洲| 国产精品久久精品日日| 波多野结衣一区二区三区| 国产精品情趣视频| 成人高清免费观看| 亚洲三级视频在线观看| 91成人在线观看喷潮| 亚洲综合色噜噜狠狠| 欧美日韩一区二区三区四区| 亚洲成av人片在线| 日韩欧美亚洲国产精品字幕久久久| 奇米精品一区二区三区在线观看| 制服丝袜亚洲精品中文字幕| 久久99精品视频| 国产精品三级视频| 一本到三区不卡视频| 亚洲va韩国va欧美va| 欧美日本一区二区三区四区| 奇米精品一区二区三区在线观看 | 亚洲一区国产视频| 欧美日韩精品一区视频| 韩国女主播一区二区三区| 久久精品综合网| 91精彩视频在线| 美女在线观看视频一区二区| 久久久精品人体av艺术| 一本色道**综合亚洲精品蜜桃冫| 五月天激情综合网| 精品国产一区a| 一本一本久久a久久精品综合麻豆| 亚洲va天堂va国产va久| 国产日韩欧美精品电影三级在线| 色综合久久66| 欧美国产国产综合| 久久精品99国产精品日本| 国产iv一区二区三区| 日韩色在线观看| 91日韩一区二区三区| 国产精品水嫩水嫩| 91精品国产综合久久精品性色| 亚洲一本大道在线| 久久网站最新地址| 欧美伊人久久久久久午夜久久久久| 亚洲成精国产精品女| 久久久久国产精品人| 7777精品伊人久久久大香线蕉完整版 | 亚洲男帅同性gay1069| 在线一区二区三区做爰视频网站| 久久99国产精品久久| 图片区小说区区亚洲影院| 欧美电视剧在线看免费| 欧美无乱码久久久免费午夜一区| 蜜臀91精品一区二区三区| 亚洲精品日日夜夜| 久久精品免费在线观看| 欧美视频一区二区在线观看| 国产91丝袜在线观看| 青娱乐精品在线视频| 亚洲国产日韩a在线播放性色| 中文av字幕一区| 久久只精品国产| 日韩欧美一区在线| 在线观看91视频| 在线视频欧美区| 日本高清成人免费播放| jvid福利写真一区二区三区| 久久99精品久久久久久动态图| 午夜精品久久久久久久99水蜜桃| 一区二区在线免费| 亚洲免费观看高清完整版在线观看| 国产三级精品三级在线专区| 精品国产91乱码一区二区三区| 51精品久久久久久久蜜臀| 欧美另类高清zo欧美| 欧美巨大另类极品videosbest| 99久久国产综合色|国产精品| 国产成a人无v码亚洲福利| 国内国产精品久久| 国产一区二区三区国产| 国产在线日韩欧美| 丁香六月久久综合狠狠色| 国产91在线看| 99久久精品国产一区| 色婷婷激情久久| 欧美午夜精品一区二区蜜桃 | 日韩电影在线一区二区三区| 亚洲va韩国va欧美va精品| 日日夜夜精品视频免费| 麻豆成人综合网| 韩国精品在线观看| 成人妖精视频yjsp地址| 国产成都精品91一区二区三| 99综合影院在线| 91黄视频在线观看| 欧美久久一二区| 久久综合九色综合欧美亚洲| 国产日韩一级二级三级| 亚洲同性gay激情无套| 亚洲国产aⅴ成人精品无吗| 性做久久久久久免费观看欧美| 日本成人在线不卡视频| 国模少妇一区二区三区| 色综合久久久久网| 91精品国产综合久久婷婷香蕉| 精品卡一卡二卡三卡四在线| 国产精品丝袜91| 日韩精品乱码免费| 成人午夜电影网站| 在线免费观看日韩欧美| 91麻豆精品国产自产在线| 精品1区2区在线观看| 亚洲人成精品久久久久久| 日本不卡的三区四区五区| 懂色av中文一区二区三区| 欧美日韩激情一区二区| 久久人人爽人人爽| 亚洲一二三专区| 国产成人99久久亚洲综合精品| 在线国产亚洲欧美| 国产日韩欧美一区二区三区综合| 亚洲国产成人精品视频| 成人综合在线网站|