⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 epcglobalreadermib.java

📁 关于 RFID 读写器的相关内容
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
/*
 * 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.agent.snmp.mib;

//--AgentGen BEGIN=_BEGIN
//--AgentGen END

import org.fosstrak.reader.rprm.core.mgmt.agent.snmp.table.SnmpTable;
import org.fosstrak.reader.rprm.core.mgmt.agent.snmp.table.SnmpTableRowFactory;
import org.fosstrak.reader.rprm.core.mgmt.agent.snmp.table.SnmpTable.TableTypeEnum;
import org.apache.log4j.Logger;
import org.snmp4j.agent.DuplicateRegistrationException;
import org.snmp4j.agent.MOAccess;
import org.snmp4j.agent.MOGroup;
import org.snmp4j.agent.MOServer;
import org.snmp4j.agent.NotificationOriginator;
import org.snmp4j.agent.mo.DefaultMOFactory;
import org.snmp4j.agent.mo.DefaultMOMutableTableModel;
import org.snmp4j.agent.mo.MOAccessImpl;
import org.snmp4j.agent.mo.MOColumn;
import org.snmp4j.agent.mo.MOFactory;
import org.snmp4j.agent.mo.MOMutableColumn;
import org.snmp4j.agent.mo.MOMutableTableModel;
import org.snmp4j.agent.mo.MOScalar;
import org.snmp4j.agent.mo.MOTable;
import org.snmp4j.agent.mo.MOTableIndex;
import org.snmp4j.agent.mo.MOTableIndexValidator;
import org.snmp4j.agent.mo.MOTableSubIndex;
import org.snmp4j.agent.mo.MOValueValidationEvent;
import org.snmp4j.agent.mo.MOValueValidationListener;
import org.snmp4j.agent.mo.snmp.RowStatus;
import org.snmp4j.agent.mo.snmp.smi.Constraint;
import org.snmp4j.agent.mo.snmp.smi.ConstraintsImpl;
import org.snmp4j.agent.mo.snmp.smi.EnumerationConstraint;
import org.snmp4j.agent.mo.snmp.smi.ValueConstraint;
import org.snmp4j.agent.mo.snmp.smi.ValueConstraintValidator;
import org.snmp4j.agent.request.SubRequest;
import org.snmp4j.mp.SnmpConstants;
import org.snmp4j.smi.Counter32;
import org.snmp4j.smi.Gauge32;
import org.snmp4j.smi.Integer32;
import org.snmp4j.smi.OID;
import org.snmp4j.smi.OctetString;
import org.snmp4j.smi.SMIConstants;
import org.snmp4j.smi.UnsignedInteger32;
import org.snmp4j.smi.Variable;
import org.snmp4j.smi.VariableBinding;

//--AgentGen BEGIN=_IMPORT
//--AgentGen END

public class EpcglobalReaderMib 
//--AgentGen BEGIN=_EXTENDS
//--AgentGen END
implements MOGroup 
//--AgentGen BEGIN=_IMPLEMENTS
//--AgentGen END
{

  private static EpcglobalReaderMib instance = null;
  
  public static EpcglobalReaderMib getInstance() {
	if (instance == null) instance = new EpcglobalReaderMib();
	return EpcglobalReaderMib.instance;
  }
  
  private static final Logger log = Logger.getLogger(EpcglobalReaderMib.class);

//--AgentGen BEGIN=_STATIC
//--AgentGen END

  // Factory
  private static MOFactory moFactory = DefaultMOFactory.getInstance();

  // Constants 
  public static final OID oidEpcgRdrDevDescription = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,1,0 });
  public static final OID oidEpcgRdrDevRole = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,2,0 });
  public static final OID oidEpcgRdrDevEpc = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,3,0 });
  public static final OID oidEpcgRdrDevSerialNumber = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,4,0 });
  public static final OID oidEpcgRdrDevTimeUtc = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,5,0 });
  public static final OID oidEpcgRdrDevCurrentSource = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,6,0 });
  public static final OID oidEpcgRdrDevReboot = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,7,0 });
  public static final OID oidEpcgRdrDevResetStatistics = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,8,0 });
  public static final OID oidEpcgRdrDevResetTimestamp = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,9,0 });
  public static final OID oidEpcgRdrDevNormalizePowerLevel = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,10,0 });
  public static final OID oidEpcgRdrDevNormalizeNoiseLevel = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,11,0 });
  public static final OID oidEpcgRdrDevOperStatus = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,1,0 });
  public static final OID oidEpcgRdrDevOperStateEnable = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,3,0 });
  public static final OID oidEpcgRdrDevOperNotifFromState = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,4,0 });
  public static final OID oidEpcgRdrDevOperNotifToState = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,5,0 });
  public static final OID oidEpcgRdrDevOperNotifStateLevel = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,6,0 });
  public static final OID oidEpcgRdrDevOperStateSuppressInterval = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,7,0 });
  public static final OID oidEpcgRdrDevOperStateSuppressions = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,8,0 });
  public static final OID oidEpcgRdrDevFreeMemory = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,1,0 });
  public static final OID oidEpcgRdrDevFreeMemoryNotifEnable = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,2,0 });
  public static final OID oidEpcgRdrDevFreeMemoryNotifLevel = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,3,0 });
  public static final OID oidEpcgRdrDevFreeMemoryOnsetThreshold = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,4,0 });
  public static final OID oidEpcgRdrDevFreeMemoryAbateThreshold = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,5,0 });
  public static final OID oidEpcgRdrDevFreeMemoryStatus = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,6,0 });
  public static final OID oidEpcgRdrDevMemStateSuppressInterval = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,7,0 });
  public static final OID oidEpcgRdrDevMemStateSuppressions = 
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,8,0 });
  public static final OID oidEpcgReaderDeviceOperationState =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,1 });   
  public static final OID oidTrapVarSysName =
    new OID(new int[] { 1,3,6,1,2,1,1,5 });
//    new OID(new int[] { $oid.replace($DOT.charAt(0),$COMMA.charAt(0)) });
  public static final OID oidTrapVarEpcgRdrDevTimeUtc =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,1,5 });
  public static final OID oidTrapVarEpcgRdrDevOperNotifStateLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,6 });
  public static final OID oidTrapVarEpcgRdrDevOperStatusPrior =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,2 });
  public static final OID oidTrapVarEpcgRdrDevOperStatus =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,3,1 });

  public static final OID oidEpcgRdrDevMemoryState =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,2 });   
  public static final OID oidTrapVarEpcgRdrDevFreeMemoryNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,3 });
  public static final OID oidTrapVarEpcgRdrDevFreeMemory =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,1,4,1 });

  public static final OID oidEpcgReadPointOperationState =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,3 });   
  public static final OID oidTrapVarEpcgReadPointOperNotifyStateLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,2,1,1,9 });
  public static final OID oidTrapVarEpcgReadPointName =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,2,1,1,2 });
  public static final OID oidTrapVarEpcgReadPointPriorOperStatus =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,2,1,1,10 });
  public static final OID oidTrapVarEpcgReadPointOperStatus =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,2,1,1,5 });

  public static final OID oidEpcgReaderAntennaReadFailure =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,4 });   
  public static final OID oidTrapVarEpcgAntRdPntReadFailureNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,5 });
  public static final OID oidTrapVarEpcgAntRdPntMemoryReadFailures =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,3 });
  public static final OID oidTrapVarEpcgAntRdPntNoiseLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,23 });

  public static final OID oidEpcgReaderAntennaWriteFailure =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,5 });   
  public static final OID oidTrapVarEpcgAntRdPntWriteFailuresNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,9 });
  public static final OID oidTrapVarEpcgAntRdPntWriteFailures =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,7 });

  public static final OID oidEpcgReaderAntennaKillFailure =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,6 });   
  public static final OID oidTrapVarEpcgAntRdPntKillFailuresNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,13 });
  public static final OID oidTrapVarEpcgAntRdPntKillFailures =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,11 });

  public static final OID oidEpcgReaderAntennaEraseFailure =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,7 });   
  public static final OID oidTrapVarEpcgAntRdPntEraseFailuresNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,17 });
  public static final OID oidTrapVarEpcgAntRdPntEraseFailures =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,15 });

  public static final OID oidEpcgReaderAntennaLockFailure =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,8 });   
  public static final OID oidTrapVarEpcgAntRdPntLockFailuresNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,21 });
  public static final OID oidTrapVarEpcgAntRdPntLockFailures =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,3,1,1,19 });

  public static final OID oidEpcgReaderIoPortOperationState =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,9 });   
  public static final OID oidTrapVarEpcgIoPortOperStatusNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,4,1,1,6 });
  public static final OID oidTrapVarEpcgIoPortName =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,4,1,1,2 });
  public static final OID oidTrapVarEpcgIoPortOperStatusPrior =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,4,1,1,10 });
  public static final OID oidTrapVarEpcgIoPortOperStatus =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,4,1,1,4 });

  public static final OID oidEpcgReaderSourceOperationState =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,10 });   
  public static final OID oidTrapVarEpcgSrcOperStatusNotifyLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,5,1,1,21 });
  public static final OID oidTrapVarEpcgSrcName =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,5,1,1,2 });
  public static final OID oidTrapVarEpcgSrcOperStatusPrior =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,5,1,1,23 });
  public static final OID oidTrapVarEpcgSrcOperStatus =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,5,1,1,17 });

  public static final OID oidEpcgReaderNotificationChanOperState =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,0,11 });   
  public static final OID oidTrapVarEpcgNotifChanOperNotifLevel =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,6,1,1,10 });
  public static final OID oidTrapVarEpcgNotifChanName =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,6,1,1,2 });
  public static final OID oidTrapVarEpcgNotifChanOperStatusPrior =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,6,1,1,13 });
  public static final OID oidTrapVarEpcgNotifChanOperStatus =
    new OID(new int[] { 1,3,6,1,4,1,22695,1,1,1,6,1,1,8 });


  // Enumerations
  public static final class EpcgRdrDevRebootEnum {
    public static final int _true = 1;
    public static final int _false = 2;
  }
  public static final class EpcgRdrDevResetStatisticsEnum {
    public static final int _true = 1;
    public static final int _false = 2;
  }
  public static final class EpcgRdrDevNormalizePowerLevelEnum {
    public static final int _true = 1;
    public static final int _false = 2;
  }
  public static final class EpcgRdrDevNormalizeNoiseLevelEnum {
    public static final int _true = 1;
    public static final int _false = 2;
  }
  public static final class EpcgRdrDevOperStatusEnum {
    public static final int unknown = 1;
    public static final int other = 2;
    public static final int up = 3;
    public static final int down = 4;
  }
  public static final class EpcgRdrDevOperStateEnableEnum {
    public static final int _true = 1;
    public static final int _false = 2;
  }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -