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

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

public abstract class AbstractSimpleIndexLPConstrainedRows
extends AbstractSimpleIndexLPModelComponent
implements LPModelComponent, LPConstraintSequence

Abstract base class for LP models that have a single pair of constrOffset ids and come together with their constraints.


Field Summary
 
Fields inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractSimpleIndexLPModelComponent
columnOffsetId, rowOffsetId
 
Fields inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPConstraintSequence
OFFSET_UNDEFINED
 
Constructor Summary
AbstractSimpleIndexLPConstrainedRows(String rowOffsetId, String columnOffsetId)
          Constructor
 
Method Summary
 int getConstrOffset()
          Get the global index of the first element of the sequence.
 String getConstrOffsetId()
          Return the identifier for the offset in the global LP model.
 int getNumConstrs()
          Get the number of elements in the sequence.
 void setConstrOffset(int globalIndex)
          Set the offset, i.e., the index of the first row resp. column of the sequence in the global model.
 void setConstrOffsetId(String offsetId)
          Set the identifier which defines the offset of the condition sequence in a global LP model.
 
Methods inherited from class net.sourceforge.combean.mathprog.lp.model.AbstractSimpleIndexLPModelComponent
getColumnModelIndex, getColumnOffsetId, getColumnOffsetIds, getRowModelIndex, getRowOffsetId, getRowOffsetIds, setColumnOffsetId, setRowOffsetId
 
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
getColumnOffsetIds, getOrientation, getRowOffsetIds
 
Methods inherited from interface net.sourceforge.combean.interfaces.mathprog.linalg.AbstractMatrix
getNumColumns, getNumRows
 
Methods inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPConstraintSequence
getLPConstraint
 

Constructor Detail

AbstractSimpleIndexLPConstrainedRows

public AbstractSimpleIndexLPConstrainedRows(String rowOffsetId,
                                            String columnOffsetId)
Constructor

Parameters:
rowOffsetId -
columnOffsetId -
Method Detail

getConstrOffset

public int getConstrOffset()
Description copied from interface: LPConstraintSequence
Get the global index of the first element of the sequence.

Specified by:
getConstrOffset in interface LPConstraintSequence
Returns:
the global index of the first element of the sequence.

setConstrOffset

public void setConstrOffset(int globalIndex)
Description copied from interface: LPConstraintSequence
Set the offset, i.e., the index of the first row resp. column of the sequence in the global model.

Specified by:
setConstrOffset in interface LPConstraintSequence
Parameters:
globalIndex - the global index of the first element of the sequence.

getConstrOffsetId

public String getConstrOffsetId()
Description copied from interface: LPConstraintSequence
Return the identifier for the offset in the global LP model.

Specified by:
getConstrOffsetId in interface LPConstraintSequence
Returns:
the identifier for the offset in the global LP model.

setConstrOffsetId

public void setConstrOffsetId(String offsetId)
Description copied from interface: LPConstraintSequence
Set the identifier which defines the offset of the condition sequence in a global LP model.

Specified by:
setConstrOffsetId in interface LPConstraintSequence
Parameters:
offsetId - the offset identifier.

getNumConstrs

public int getNumConstrs()
Description copied from interface: LPConstraintSequence
Get the number of elements in the sequence.

Specified by:
getNumConstrs in interface LPConstraintSequence
Returns:
the number of elements in the sequence.