001/* 002 * Cobertura - http://cobertura.sourceforge.net/ 003 * 004 * Copyright (C) 2005 Mark Doliner 005 * 006 * Cobertura is free software; you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published 008 * by the Free Software Foundation; either version 2 of the License, 009 * or (at your option) any later version. 010 * 011 * Cobertura is distributed in the hope that it will be useful, but 012 * WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License 017 * along with Cobertura; if not, write to the Free Software 018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 019 * USA 020 */ 021 022package net.sourceforge.cobertura.check; 023 024public class PackageCoverage 025{ 026 027 private double branchCount; 028 private double lineCount; 029 private double branchCoverage; 030 private double lineCoverage; 031 032 public double getBranchCount() 033 { 034 return branchCount; 035 } 036 037 public void addBranchCount(double branchCount) 038 { 039 this.branchCount += branchCount; 040 } 041 042 public double getLineCount() 043 { 044 return lineCount; 045 } 046 047 public void addLineCount(double lineCount) 048 { 049 this.lineCount += lineCount; 050 } 051 052 public double getBranchCoverage() 053 { 054 return branchCoverage; 055 } 056 057 public void addBranchCoverage(double branchCoverage) 058 { 059 this.branchCoverage += branchCoverage; 060 } 061 062 public double getLineCoverage() 063 { 064 return lineCoverage; 065 } 066 067 public void addLineCoverage(double lineCoverage) 068 { 069 this.lineCoverage += lineCoverage; 070 } 071 072}