net.sourceforge.combean.mathprog.lp.model
Class AbstractSimpleIndexLPModelComponent
java.lang.Object
net.sourceforge.combean.mathprog.lp.model.AbstractLPModelComponent
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).
rowOffsetId
protected String rowOffsetId
columnOffsetId
protected String columnOffsetId
AbstractSimpleIndexLPModelComponent
public AbstractSimpleIndexLPModelComponent(VectorOrientation orientation,
String rowOffsetId,
String columnOffsetId)
- Parameters:
orientation
-
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)