// 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.*;

/**
 * Class represents ipNetToMediaTable MIB object in RFC1213_MIB
 */
public class IpNetToMediaTable extends DynamicTable implements IpNetToMediaTableMBean
{
    /**
     * 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 IpNetToMediaTable (OIDTreeNode root, String oid, Object[] args)
    {
        super(root, oid, "ipNetToMediaTable", IpNetToMediaEntry.class, 60000 * 5);
    }
    
    /**
     * Creates a new instance of table entry object
     */
    public SnmpTableEntry newEntryInstance()
    {
        return new IpNetToMediaEntry (this);
    }
    
    /**
     * Gets ipNetToMediaIfIndex value
     * @param ipNetToMediaEntry table entry object
     */
    public int getIpNetToMediaIfIndex(SnmpTableEntry ipNetToMediaEntry)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            // TODO: Add your implementation
            return entry._ipNetToMediaIfIndex;
        }
    }
    
    /**
     * Sets new ipNetToMediaIfIndex value
     * @param ipNetToMediaEntry table entry object
     * @param newValue new value to be set
     */
    public void setIpNetToMediaIfIndex(SnmpTableEntry ipNetToMediaEntry, int newValue)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            entry._ipNetToMediaIfIndex = newValue;
            // TODO: Add your implementation
        }
    }
    
    /**
     * Gets ipNetToMediaPhysAddress value
     * @param ipNetToMediaEntry table entry object
     */
    public String getIpNetToMediaPhysAddress(SnmpTableEntry ipNetToMediaEntry)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            // TODO: Add your implementation
            return entry._ipNetToMediaPhysAddress;
        }
    }
    
    /**
     * Sets new ipNetToMediaPhysAddress value
     * @param ipNetToMediaEntry table entry object
     * @param newValue new value to be set
     */
    public void setIpNetToMediaPhysAddress(SnmpTableEntry ipNetToMediaEntry, String newValue)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            entry._ipNetToMediaPhysAddress = newValue;
            // TODO: Add your implementation
        }
    }
    
    /**
     * Gets ipNetToMediaNetAddress value
     * @param ipNetToMediaEntry table entry object
     */
    public SnmpIpAddress getIpNetToMediaNetAddress(SnmpTableEntry ipNetToMediaEntry)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            // TODO: Add your implementation
            return entry._ipNetToMediaNetAddress;
        }
    }
    
    /**
     * Sets new ipNetToMediaNetAddress value
     * @param ipNetToMediaEntry table entry object
     * @param newValue new value to be set
     */
    public void setIpNetToMediaNetAddress(SnmpTableEntry ipNetToMediaEntry, SnmpIpAddress newValue)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            entry._ipNetToMediaNetAddress = newValue;
            // TODO: Add your implementation
        }
    }
    
    /**
     * Gets ipNetToMediaType value
     * @param ipNetToMediaEntry table entry object
     */
    public int getIpNetToMediaType(SnmpTableEntry ipNetToMediaEntry)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            // TODO: Add your implementation
            return entry._ipNetToMediaType;
        }
    }
    
    /**
     * Sets new ipNetToMediaType value
     * @param ipNetToMediaEntry table entry object
     * @param newValue new value to be set
     */
    public void setIpNetToMediaType(SnmpTableEntry ipNetToMediaEntry, int newValue)
    {
        synchronized (ipNetToMediaEntry)
        {
            IpNetToMediaEntry entry = (IpNetToMediaEntry) ipNetToMediaEntry;
            entry._ipNetToMediaType = newValue;
            // TODO: Add your implementation
        }
    }
    
}