Coverage Report - net.sourceforge.combean.interfaces.mathprog.lp.LPConstraint
 
Classes in this File Line Coverage Branch Coverage Complexity
LPConstraint
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 22.04.2005
 20  
  *
 21  
  */
 22  
 package net.sourceforge.combean.interfaces.mathprog.lp;
 23  
 
 24  
 import net.sourceforge.combean.interfaces.base.NamedObject;
 25  
 
 26  
 /**
 27  
  * The right-hand side of a linear constraint, consisting of a relation
 28  
  * (less, less equal, greater etc.) and a value.
 29  
  * 
 30  
  * @author schickin
 31  
  *
 32  
  */
 33  
 public interface LPConstraint extends NamedObject {
 34  
     
 35  
     public static final byte REL_UNDEFINED = 0;
 36  
     public static final byte REL_EQUAL = 1;
 37  
     public static final byte REL_GREATER = 2;
 38  
     public static final byte REL_LESS = 3;
 39  
     public static final byte REL_COUNT = 4;
 40  
 
 41  
     /**
 42  
      * Return relation symbol
 43  
      * 
 44  
      * @return code for relation symbol
 45  
      */
 46  
     public byte getRelation();
 47  
     
 48  
     /**
 49  
      * Get value of right-hand side.
 50  
      * 
 51  
      * @return value of right-hand side.
 52  
      */
 53  
     public double getRhs();
 54  
 }