| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| SimpleNumberGraph |
|
| 1.0;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 15.01.2005 | |
| 20 | * | |
| 21 | */ | |
| 22 | package net.sourceforge.combean.samples.simplegraphs; | |
| 23 | ||
| 24 | ||
| 25 | /** | |
| 26 | * @author schickin | |
| 27 | * | |
| 28 | */ | |
| 29 | public abstract class SimpleNumberGraph extends NumberGraph { | |
| 30 | ||
| 31 | 300 | private int size = 0; |
| 32 | ||
| 33 | /** | |
| 34 | * @param size the number of nodes in the graph | |
| 35 | */ | |
| 36 | public SimpleNumberGraph(int size) { | |
| 37 | 300 | super(); |
| 38 | 300 | this.size = size; |
| 39 | 300 | } |
| 40 | ||
| 41 | /** | |
| 42 | * @see net.sourceforge.combean.interfaces.graph.prop.GlobalNodesGraphProp#getNumNodes() | |
| 43 | */ | |
| 44 | public final int getNumNodes() { | |
| 45 | 8685 | return this.size; |
| 46 | } | |
| 47 | ||
| 48 | } |