|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.sourceforge.combean.mathprog.lp.model.AbstractLPVariableSequence
public abstract class AbstractLPVariableSequence
An abstract base class for an LP variable sequences. Takes care of the offset id and the offset and makes own implementations of LPVariableSequence a bit simpler.
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.model.LPVariableSequence |
|---|
OFFSET_UNDEFINED |
| Constructor Summary | |
|---|---|
AbstractLPVariableSequence(String offsetId)
|
|
AbstractLPVariableSequence(String offsetId,
boolean isInteger)
|
|
| Method Summary | |
|---|---|
LPModelIndex |
getColumnModelIndex(int localColumn)
Create a column model index for a given local index. |
int |
getVarOffset()
Get the global index of the first element of the sequence. |
String |
getVarOffsetId()
Return the identifier for the offset in the global LP model. |
boolean |
isInteger()
Flag whether the variables in the sequence are integer variables. |
void |
setIntegerFlag(boolean isInteger)
|
void |
setVarOffset(int offset)
Set the offset, i.e., the index of the first row resp. column of the sequence in the global model. |
void |
setVarOffsetId(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.LPVariableSequence |
|---|
getLPVariable, getNumVars |
| Constructor Detail |
|---|
public AbstractLPVariableSequence(String offsetId)
public AbstractLPVariableSequence(String offsetId,
boolean isInteger)
| Method Detail |
|---|
public void setVarOffsetId(String offsetId)
LPVariableSequence
setVarOffsetId in interface LPVariableSequenceoffsetId - the offset identifier.public String getVarOffsetId()
LPVariableSequence
getVarOffsetId in interface LPVariableSequencepublic void setVarOffset(int offset)
LPVariableSequence
setVarOffset in interface LPVariableSequenceoffset - the global index of the first element of the sequence.public int getVarOffset()
LPVariableSequence
getVarOffset in interface LPVariableSequencepublic String toString()
toString in class Objectpublic LPModelIndex getColumnModelIndex(int localColumn)
localColumn - the local index
public boolean isInteger()
LPVariableSequence
isInteger in interface LPVariableSequencepublic void setIntegerFlag(boolean isInteger)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||