All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.regnis.q.sequence.core.QSequenceMiddleSnakeFinderResult Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
/*
 * ====================================================================
 * Copyright (c) 2000-2008 SyntEvo GmbH, [email protected]
 * All rights reserved.
 *
 * This software is licensed as described in the file SEQUENCE-LICENSE,
 * which you should have received as part of this distribution. Use is
 * subject to license terms.
 * ====================================================================
 */

package de.regnis.q.sequence.core;

/**
 * @author Marc Strapetz
 */
class QSequenceMiddleSnakeFinderResult {

	// Fields =================================================================

	private int leftFrom;
	private int rightFrom;
	private int leftTo;
	private int rightTo;

	// Accessing ==============================================================

	public int getLeftFrom() {
		return leftFrom;
	}

	public int getRightFrom() {
		return rightFrom;
	}

	public int getLeftTo() {
		return leftTo;
	}

	public int getRightTo() {
		return rightTo;
	}

	public void reset() {
		leftFrom = 0;
		rightFrom = 0;
		leftTo = 0;
		rightTo = 0;
	}

	public void setMiddleSnake(int leftFrom, int rightFrom, int leftTo, int rightTo) {
		if (QSequenceAlgorithm.ASSERTIONS) {
			QSequenceAssert.assertTrue(0 <= leftFrom && leftFrom <= leftTo);
			QSequenceAssert.assertTrue(0 <= rightFrom && rightFrom <= rightTo);
		}

		this.leftFrom = leftFrom;
		this.rightFrom = rightFrom;
		this.leftTo = leftTo;
		this.rightTo = rightTo;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy