// Home | Go Back //

/*
 * Copyright (c) 2002-2003 iReasoning Inc. All Rights Reserved.
 * 
 * This SOURCE CODE FILE, which has been provided by iReasoning Inc. as part
 * of an iReasoning Software product for use ONLY by licensed users of the product,
 * includes CONFIDENTIAL and PROPRIETARY information of iReasoning Inc.  
 *
 * USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS 
 * OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
 * THE PRODUCT.
 *
 * IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD IREASONING SOFTWARE, ITS
 * RELATED COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY
 * CLAIMS OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR
 * DISTRIBUTION OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES
 * ARISING OUT OF OR RESULTING FROM THE USE, MODIFICATION, OR
 * DISTRIBUTION OF PROGRAMS OR FILES CREATED FROM, BASED ON, AND/OR
 * DERIVED FROM THIS SOURCE CODE FILE.
 */

package agent.mib2jni;
import java.io.*;
import java.util.*;
import com.ireasoning.util.*;
import com.ireasoning.protocol.snmp.*;
import javax.management.*;
import com.ireasoning.jni.*;

/**
 * Class represents atTable MIB object in RFC1213_MIB
 */
public class AtTable extends DynamicTable implements AtTableMBean
{
    /**
     * Constructor
     * @param root SnmpOID tree root
     * @param oid the SnmpOID of this table. For example, ".1.3.6.1.2.1.2.2" for IfTable in RFC1213  
     * @param args the objects passed from caller for Initialization purpose
     */
    public AtTable (OIDTreeNode root, String oid, Object[] args)
    {
        super(root, oid, "atTable", AtEntry.class, 60000 * 60);
    }
    
    /**
     * Creates a new instance of table entry object
     */
    public SnmpTableEntry newEntryInstance()
    {
        return new AtEntry (this);
    }
    
    /**
     * Gets atIfIndex value
     * @param atEntry table entry object
     */
    public int getAtIfIndex(SnmpTableEntry atEntry)
    {
        synchronized (atEntry)
        {
            AtEntry entry = (AtEntry) atEntry;
            // TODO: Add your implementation
            return entry._atIfIndex;
        }
    }
    
    /**
     * Sets new atIfIndex value
     * @param atEntry table entry object
     * @param newValue new value to be set
     */
    public void setAtIfIndex(SnmpTableEntry atEntry, int newValue)
    {
        synchronized (atEntry)
        {
            AtEntry entry = (AtEntry) atEntry;
            entry._atIfIndex = newValue;
            // TODO: Add your implementation
        }
    }
    
    /**
     * Gets atPhysAddress value
     * @param atEntry table entry object
     */
    public String getAtPhysAddress(SnmpTableEntry atEntry)
    {
        synchronized (atEntry)
        {
            AtEntry entry = (AtEntry) atEntry;
            // TODO: Add your implementation
            return entry._atPhysAddress;
        }
    }
    
    /**
     * Sets new atPhysAddress value
     * @param atEntry table entry object
     * @param newValue new value to be set
     */
    public void setAtPhysAddress(SnmpTableEntry atEntry, String newValue)
    {
        synchronized (atEntry)
        {
            AtEntry entry = (AtEntry) atEntry;
            entry._atPhysAddress = newValue;
            // TODO: Add your implementation
        }
    }
    
    /**
     * Gets atNetAddress value
     * @param atEntry table entry object
     */
    public SnmpIpAddress getAtNetAddress(SnmpTableEntry atEntry)
    {
        synchronized (atEntry)
        {
            AtEntry entry = (AtEntry) atEntry;
            // TODO: Add your implementation
            return entry._atNetAddress;
        }
    }
    
    /**
     * Sets new atNetAddress value
     * @param atEntry table entry object
     * @param newValue new value to be set
     */
    public void setAtNetAddress(SnmpTableEntry atEntry, SnmpIpAddress newValue)
    {
        synchronized (atEntry)
        {
            AtEntry entry = (AtEntry) atEntry;
            entry._atNetAddress = newValue;
            // TODO: Add your implementation
        }
    }
    
}