Ptidej-v5.2-master/Mendel/src/mendel/metric/jclass/ImpCount.java
/*******************************************************************************
 * Copyright (c) 2001-2014 Yann-Gal Guhneuc and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Yann-Gal Guhneuc and others, see in file; API and its implementation
 ******************************************************************************/
package mendel.metric.jclass;

import mendel.metric.DispatchMetric;
import mendel.model.JClassEntity;

public class ImpCount extends DispatchMetric {

	public String compute(JClassEntity entity) {
		return new Integer( entity.getImplementedMethods().size() ).toString();
	}

	public String getName() {
		return "Imp Count";
	}

}
