Coverage Report - net.sourceforge.combean.interfaces.mathprog.lp.model.LPModelComponent
 
Classes in this File Line Coverage Branch Coverage Complexity
LPModelComponent
N/A
N/A
1
 
 1  
 /*
 2  
     This file is part of Combean.
 3  
 
 4  
     Combean is free software; you can redistribute it and/or modify
 5  
     it under the terms of the GNU General Public License as published by
 6  
     the Free Software Foundation; either version 2 of the License, or
 7  
     (at your option) any later version.
 8  
 
 9  
     Combean is distributed in the hope that it will be useful,
 10  
     but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12  
     GNU General Public License for more details.
 13  
 
 14  
     You should have received a copy of the GNU General Public License
 15  
     along with Combean; if not, write to the Free Software
 16  
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 17  
 */
 18  
 /*
 19  
      * Created on 07.08.2005
 20  
  *
 21  
  */
 22  
 package net.sourceforge.combean.interfaces.mathprog.lp.model;
 23  
 
 24  
 import java.util.Iterator;
 25  
 
 26  
 import net.sourceforge.combean.interfaces.mathprog.linalg.AbstractMatrix;
 27  
 import net.sourceforge.combean.interfaces.mathprog.linalg.VectorOrientation;
 28  
 
 29  
 
 30  
 /**
 31  
  * The base class for a (matrix-like) component of a linear programming model.
 32  
  * 
 33  
  * Entries in a model component have both a local row and column index and
 34  
  * an offset id for their row and column. These offset ids are used for
 35  
  * constructing a mapping of pairs (local index, offset id) -> global index
 36  
  * within the complete linear program.
 37  
  * 
 38  
  * @author schickin
 39  
  *
 40  
  */
 41  
 public interface LPModelComponent extends AbstractMatrix {
 42  
     
 43  
     /**
 44  
      * Get an iterator through all row offset ids used by the component.
 45  
      * 
 46  
      * @return an iterator through all row offset ids used by the component.
 47  
      */
 48  
     public Iterator getRowOffsetIds();
 49  
     
 50  
     /**
 51  
      * Get an iterator through all column offset ids used by the component.
 52  
      * 
 53  
      * @return an iterator through all column offset ids used by the component.
 54  
      */
 55  
     public Iterator getColumnOffsetIds();
 56  
 
 57  
     /**
 58  
      * Get the orientation how the component shall be inserted into the
 59  
      * global model (either row-by-row or column-by-column).
 60  
      * 
 61  
      * @return the orientation for inserting the component into the global model
 62  
      */
 63  
     public VectorOrientation getOrientation();
 64  
 }