|
|||||||||
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.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 LPVariableSequence
offsetId
- the offset identifier.public String getVarOffsetId()
LPVariableSequence
getVarOffsetId
in interface LPVariableSequence
public void setVarOffset(int offset)
LPVariableSequence
setVarOffset
in interface LPVariableSequence
offset
- the global index of the first element of the sequence.public int getVarOffset()
LPVariableSequence
getVarOffset
in interface LPVariableSequence
public String toString()
toString
in class Object
public LPModelIndex getColumnModelIndex(int localColumn)
localColumn
- the local index
public boolean isInteger()
LPVariableSequence
isInteger
in interface LPVariableSequence
public void setIntegerFlag(boolean isInteger)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |