/**
 * Copyright (C) . - All Rights Reserved.
 * Unauthorized copying of this file via any medium is
 * strictly prohibited Proprietary and Confidential.
 * Written by .
 */

package pda.core.trace.path;

/**
 * @author
 *
 */
public class CoverInfo {

	private int _failedCount = 0;
	private int _passedCount = 0;
	private int _failedObservedCount = 0;
	private int _passedObservedCount = 0;

	public CoverInfo() {
	}

	public void failedAdd(int count) {
		_failedCount += count;
	}

	public void passedAdd(int count) {
		_passedCount += count;
	}

	public void failedObservedAdd(int count) {
		_failedObservedCount += count;
	}

	public void passedObservedAdd(int count) {
		_passedObservedCount += count;
	}

	public int getFailedCount() {
		return _failedCount;
	}

	public int getPassedCount() {
		return _passedCount;
	}

	public int getFailedObservedCount() {
		return _failedObservedCount;
	}

	public int getPassedObservedCount() {
		return _passedObservedCount;
	}

	public void combine(CoverInfo coverInfo) {
		this._failedCount += coverInfo.getFailedCount();
		this._passedCount += coverInfo.getPassedCount();
		this._failedObservedCount += coverInfo.getFailedObservedCount();
		this._passedObservedCount += coverInfo.getPassedObservedCount();
	}
}
