net.sourceforge.combean.mathprog.lp.model
Class AbstractLPModelComponent
java.lang.Object
net.sourceforge.combean.mathprog.lp.model.AbstractLPModelComponent
- All Implemented Interfaces:
- AbstractMatrix, LPModelComponent
- Direct Known Subclasses:
- AbstractSimpleIndexLPModelComponent, ConcatenatedLPModelColumns, ConcatenatedLPModelRows
public abstract class AbstractLPModelComponent
- extends Object
- implements LPModelComponent
Abstract base class for LP model components.
Simply stores the orientation of the component.
AbstractLPModelComponent
public AbstractLPModelComponent(VectorOrientation orientation)
- constructor
- Parameters:
orientation
- the orientation of the component.
getOrientation
public VectorOrientation getOrientation()
- Description copied from interface:
LPModelComponent
- Get the orientation how the component shall be inserted into the
global model (either row-by-row or column-by-column).
- Specified by:
getOrientation
in interface LPModelComponent
- Returns:
- the orientation for inserting the component into the global model
setOrientation
protected void setOrientation(VectorOrientation orientation)
- Only to be used by subclasses: Set the orientation.
- Parameters:
orientation
- The orientation to set.
toString
public String toString()
- Overrides:
toString
in class Object