org.snmp4j.agent.mo
Interface MOTableModel

All Known Subinterfaces:
MOMutableTableModel
All Known Implementing Classes:
DefaultMOMutableTableModel, DefaultMOTableModel, UsmMIB.UsmTableModel

public interface MOTableModel

The MOTableModel interface defines the base table model interface needed for MOTables. This model can be used for read-only and read-write SNMP conceptual tables. For read-create tables the MOMutableTableModel should be used instead.

Version:
1.0
Author:
Frank Fock

Method Summary
 boolean containsRow(org.snmp4j.smi.OID index)
          Checks whether this table model contains a row with the specified index.
 org.snmp4j.smi.OID firstIndex()
          Returns the first row index in this model.
 MOTableRow firstRow()
          Returns the first row contained in this model.
 int getColumnCount()
          Returns the number of columns currently in this table model.
 MOTableRow getRow(org.snmp4j.smi.OID index)
          Gets the row with the specified index.
 int getRowCount()
          Returns the number of rows currently in this table model.
 java.util.Iterator iterator()
          Returns an iterator over the rows in this table model.
 org.snmp4j.smi.OID lastIndex()
          Returns the last row index in this model.
 MOTableRow lastRow()
          Returns the last row contained in this model.
 java.util.Iterator tailIterator(org.snmp4j.smi.OID lowerBound)
          Returns an iterator on a view of the rows of this table model whose index values are greater or equal lowerBound.
 

Method Detail

getColumnCount

int getColumnCount()
Returns the number of columns currently in this table model.

Returns:
the number of columns.

getRowCount

int getRowCount()
Returns the number of rows currently in this table model.

Returns:
the number of rows.

containsRow

boolean containsRow(org.snmp4j.smi.OID index)
Checks whether this table model contains a row with the specified index.

Parameters:
index - the index OID of the row to search.
Returns:
true if this model has a row of with index index or false otherwise.

getRow

MOTableRow getRow(org.snmp4j.smi.OID index)
Gets the row with the specified index.

Parameters:
index - the row index.
Returns:
the MOTableRow with the specified index and null if no such row exists.

iterator

java.util.Iterator iterator()
Returns an iterator over the rows in this table model.

Returns:
an Iterator returning MOTableRow instances.

tailIterator

java.util.Iterator tailIterator(org.snmp4j.smi.OID lowerBound)
Returns an iterator on a view of the rows of this table model whose index values are greater or equal lowerBound.

Parameters:
lowerBound - the lower bound index (inclusive). If lowerBound is null the returned iterator is the same as returned by iterator().
Returns:
an Iterator over the

lastIndex

org.snmp4j.smi.OID lastIndex()
Returns the last row index in this model.

Returns:
the last index OID of this model.

firstIndex

org.snmp4j.smi.OID firstIndex()
Returns the first row index in this model.

Returns:
the first index OID of this model.

firstRow

MOTableRow firstRow()
Returns the first row contained in this model.

Returns:
the MOTableRow with the smallest index or null if the model is empty.

lastRow

MOTableRow lastRow()
Returns the last row contained in this model.

Returns:
the MOTableRow with the greatest index or null if the model is empty.

Copyright 2005-2008 Frank Fock (SNMP4J.org)