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

Package class diagram package AbstractLPModelComponent
java.lang.Object
  extended by 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.


Constructor Summary
AbstractLPModelComponent(VectorOrientation orientation)
          constructor
 
Method Summary
 VectorOrientation getOrientation()
          Get the orientation how the component shall be inserted into the global model (either row-by-row or column-by-column).
protected  void setOrientation(VectorOrientation orientation)
          Only to be used by subclasses: Set the orientation.
 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.LPModelComponent
getColumnOffsetIds, getRowOffsetIds
 
Methods inherited from interface net.sourceforge.combean.interfaces.mathprog.linalg.AbstractMatrix
getNumColumns, getNumRows
 

Constructor Detail

AbstractLPModelComponent

public AbstractLPModelComponent(VectorOrientation orientation)
constructor

Parameters:
orientation - the orientation of the component.
Method Detail

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