com.adventnet.adaptors.snmp
Class DefaultTableEntry

java.lang.Object
  extended by com.adventnet.adaptors.snmp.DefaultTableEntry
All Implemented Interfaces:
TableEntry

 class DefaultTableEntry
extends java.lang.Object
implements TableEntry

This class will be useful in mapping the Object[] indexes to instanceOID int[], which is well understood by the AgentTableModel Thus this class implements TableEntry.


Constructor Summary
DefaultTableEntry(int[] instanceOID, java.lang.Object[] index)
          The constructor for DefaultTableEntry
 
Method Summary
 int[] computeInstanceOID()
          This method is called whenever the instanceOID needs to be recomputed.
 void decrementCount()
          This method reduces the column count by 1.
 int getCount()
          The method to get the column count.
 java.lang.Object[] getIndex()
          Getter for the indexes.
 int[] getInstanceOID()
          Getter for instance OID which identifies a TableEntry.
 void setColumnCount(int value)
          Method to set the column count.
 void setInstanceOID(int[] instanceOID)
          Setter for instanceOID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTableEntry

public DefaultTableEntry(int[] instanceOID,
                         java.lang.Object[] index)
The constructor for DefaultTableEntry

Parameters:
instanceOID - the InstanceOID int array for the Entry
index - the Object[] of the indexes
Method Detail

getInstanceOID

public int[] getInstanceOID()
Getter for instance OID which identifies a TableEntry.

Specified by:
getInstanceOID in interface TableEntry
Returns:
The instance oid of this entry.

setInstanceOID

public void setInstanceOID(int[] instanceOID)
Setter for instanceOID.

Specified by:
setInstanceOID in interface TableEntry
Parameters:
instanceOID - The Value of the InstanceaOOD to set.

computeInstanceOID

public int[] computeInstanceOID()
This method is called whenever the instanceOID needs to be recomputed.

Specified by:
computeInstanceOID in interface TableEntry
Returns:
Instance OID of this entry.

getIndex

public java.lang.Object[] getIndex()
Getter for the indexes.

Returns:
The indexes Object[].

setColumnCount

public void setColumnCount(int value)
Method to set the column count.

Parameters:
vlaue - the coulmn count to be set.

decrementCount

public void decrementCount()
This method reduces the column count by 1.


getCount

public int getCount()
The method to get the column count.

Returns:
the column count.