Coverage Report - com.sdmetrics.metrics.BooleanOperation - www.sdmetrics.com
 
Classes in this File Line Coverage Branch Coverage Complexity
BooleanOperation
100%
1/1
N/A
1
 
 1  
 /*
 2  
  * SDMetrics Open Core for UML design measurement
 3  
  * Copyright (c) Juergen Wuest
 4  
  * To contact the author, see <http://www.sdmetrics.com/Contact.html>.
 5  
  * 
 6  
  * This file is part of the SDMetrics Open Core.
 7  
  * 
 8  
  * SDMetrics Open Core is free software: you can redistribute it and/or modify
 9  
  * it under the terms of the GNU Affero General Public License as
 10  
  * published by the Free Software Foundation, either version 3 of the
 11  
  * License, or (at your option) any later version.
 12  
     
 13  
  * SDMetrics Open Core is distributed in the hope that it will be useful,
 14  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 15  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 16  
  * GNU Affero General Public License for more details.
 17  
  *
 18  
  * You should have received a copy of the GNU Affero General Public License
 19  
  * along with SDMetrics Open Core.  If not, see <http://www.gnu.org/licenses/>.
 20  
  *
 21  
  */
 22  
 package com.sdmetrics.metrics;
 23  
 
 24  
 import com.sdmetrics.math.ExpressionNode;
 25  
 import com.sdmetrics.model.ModelElement;
 26  
 
 27  
 /**
 28  
  * Base class for Boolean operations in expressions. Boolean operations return
 29  
  * values <code>true</code> or <code>false</code>.
 30  
  * 
 31  
  * @since 2.3
 32  
  */
 33  205
 public abstract class BooleanOperation extends AbstractProcedure {
 34  
 
 35  
         /**
 36  
          * Calculates the value for the Boolean operation.
 37  
          * 
 38  
          * @param element Model element for which to calculate the value
 39  
          * @param node The expression node with the operands for the Boolean
 40  
          *        operation.
 41  
          * @param vars The variables for the calculation.
 42  
          * @return Result of the operation.
 43  
          * @throws SDMetricsException Problems while calculating the operation
 44  
          *         value.
 45  
          */
 46  
         public abstract boolean calculateValue(ModelElement element,
 47  
                         ExpressionNode node, Variables vars) throws SDMetricsException;
 48  
 }