|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.lp.model.AbstractLPConstraintSequence
public abstract class AbstractLPConstraintSequence
An abstract base class for an LP constraint sequences. Takes care of the offset id and the offset and makes own implementations of LPConstraintSequence a bit simpler.
Field Summary |
---|
Fields inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPConstraintSequence |
---|
OFFSET_UNDEFINED |
Constructor Summary | |
---|---|
AbstractLPConstraintSequence(String offsetId)
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. |
LPModelIndex |
getRowModelIndex(int localRow)
Create a row model index for a given local index |
void |
setConstrOffset(int offset)
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. |
String |
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.LPConstraintSequence |
---|
getLPConstraint, getNumConstrs |
Constructor Detail |
---|
public AbstractLPConstraintSequence(String offsetId)
Method Detail |
---|
public void setConstrOffsetId(String offsetId)
LPConstraintSequence
setConstrOffsetId
in interface LPConstraintSequence
offsetId
- the offset identifier.public String getConstrOffsetId()
LPConstraintSequence
getConstrOffsetId
in interface LPConstraintSequence
public void setConstrOffset(int offset)
LPConstraintSequence
setConstrOffset
in interface LPConstraintSequence
offset
- the global index of the first element of the sequence.public int getConstrOffset()
LPConstraintSequence
getConstrOffset
in interface LPConstraintSequence
public String toString()
toString
in class Object
public LPModelIndex getRowModelIndex(int localRow)
localRow
- the local index.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |