net.sourceforge.combean.mathprog.lp.model
Class AbstractSimpleIndexLPModelComponent

Package class diagram package AbstractSimpleIndexLPModelComponent
java.lang.Object
  extended by net.sourceforge.combean.mathprog.lp.model.AbstractLPModelComponent
      extended by net.sourceforge.combean.mathprog.lp.model.AbstractSimpleIndexLPModelComponent
All Implemented Interfaces:
AbstractMatrix, LPModelComponent
Direct Known Subclasses:
AbstractSimpleIndexLPConstrainedRows, MatrixAsLPModelMatrix

public abstract class AbstractSimpleIndexLPModelComponent
extends AbstractLPModelComponent
implements LPModelComponent

Abstract base class for elementary LP model components (i.e. components with a single pair of offset ids that can be directly set).


Field Summary
protected  String columnOffsetId
           
protected  String rowOffsetId
           
 
Constructor Summary
AbstractSimpleIndexLPModelComponent(VectorOrientation orientation, String rowOffsetId, String columnOffsetId)
           
 
Method Summary
 LPModelIndex getColumnModelIndex(int localColumn)
           
 String getColumnOffsetId()
           
 Iterator getColumnOffsetIds()
          Get an iterator through all column offset ids used by the component.
 LPModelIndex getRowModelIndex(int localRow)
           
 String getRowOffsetId()
           
 Iterator getRowOffsetIds()
          Get an iterator through all row offset ids used by the component.
 void setColumnOffsetId(String columnOffsetId)
          Set the column offset.
 void setRowOffsetId(String rowOffsetId)
          Set the row offset.
 
Methods inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractLPModelComponent
getOrientation, setOrientation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPModelComponent
getOrientation
 
Methods inherited from interface net.sourceforge.combean.interfaces.mathprog.linalg.AbstractMatrix
getNumColumns, getNumRows
 

Field Detail

rowOffsetId

protected String rowOffsetId

columnOffsetId

protected String columnOffsetId
Constructor Detail

AbstractSimpleIndexLPModelComponent

public AbstractSimpleIndexLPModelComponent(VectorOrientation orientation,
                                           String rowOffsetId,
                                           String columnOffsetId)
Parameters:
orientation -
Method Detail

getColumnOffsetId

public final String getColumnOffsetId()
Returns:
Returns the columnOffsetId.

getRowOffsetId

public final String getRowOffsetId()
Returns:
Returns the rowOffsetId.

setColumnOffsetId

public final void setColumnOffsetId(String columnOffsetId)
Set the column offset.

Parameters:
columnOffsetId - The columnOffsetId to set.

setRowOffsetId

public final void setRowOffsetId(String rowOffsetId)
Set the row offset.

Parameters:
rowOffsetId - The rowOffsetId to set.

getRowOffsetIds

public Iterator getRowOffsetIds()
Description copied from interface: LPModelComponent
Get an iterator through all row offset ids used by the component.

Specified by:
getRowOffsetIds in interface LPModelComponent
Returns:
an iterator through all row offset ids used by the component.

getColumnOffsetIds

public Iterator getColumnOffsetIds()
Description copied from interface: LPModelComponent
Get an iterator through all column offset ids used by the component.

Specified by:
getColumnOffsetIds in interface LPModelComponent
Returns:
an iterator through all column offset ids used by the component.

getColumnModelIndex

public LPModelIndex getColumnModelIndex(int localColumn)

getRowModelIndex

public LPModelIndex getRowModelIndex(int localRow)