org.simulator.math.odes
Class MultiTable.Block.Column

java.lang.Object
  extended by org.simulator.math.odes.MultiTable.Block.Column
All Implemented Interfaces:
java.lang.Iterable<java.lang.Double>
Enclosing class:
MultiTable.Block

public class MultiTable.Block.Column
extends java.lang.Object
implements java.lang.Iterable<java.lang.Double>

A column of the MultiTable.Block matrix.

Author:
Andreas Dräg;ger

Method Summary
 java.lang.String getColumnName()
          Returns the human-readable name for this column if there is any, otherwise this will return the same value as getId().
 java.lang.String getId()
          Delivers the MultiTable.Block.Column identifier of this particular column.
 java.lang.String getName()
           
 int getRowCount()
          Gives the number of rows in this MultiTable.Block.Column.
 double getValue(int rowIndex)
          Access to the given row in this column.
 java.util.Iterator<java.lang.Double> iterator()
           
 void setValue(double doubleValue, int rowIndex)
          Change the entry at the given row in this MultiTable.Block.Column.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getColumnName

public java.lang.String getColumnName()
Returns the human-readable name for this column if there is any, otherwise this will return the same value as getId().

Returns:

getId

public java.lang.String getId()
Delivers the MultiTable.Block.Column identifier of this particular column.

Returns:
The String that identifies this MultiTable.Block.Column.

getName

public java.lang.String getName()
Returns:

getRowCount

public int getRowCount()
Gives the number of rows in this MultiTable.Block.Column.

Returns:

getValue

public double getValue(int rowIndex)
Access to the given row in this column.

Parameters:
rowIndex -
Returns:

iterator

public java.util.Iterator<java.lang.Double> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.Double>

setValue

public void setValue(double doubleValue,
                     int rowIndex)
Change the entry at the given row in this MultiTable.Block.Column.

Parameters:
rowIndex - The row where to change
doubleValue - The new value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object