01: /*
02: * ====================================================================
03: * Copyright (c) 2004 Marc Strapetz, marc.strapetz@smartsvn.com.
04: * All rights reserved.
05: *
06: * This software is licensed as described in the file COPYING, which
07: * you should have received as part of this distribution. Use is
08: * subject to license terms.
09: * ====================================================================
10: */
11:
12: package de.regnis.q.sequence.core;
13:
14: /**
15: * @author Marc Strapetz
16: */
17: class QSequenceMiddleSnakeFinderResult {
18:
19: // Fields =================================================================
20:
21: private int leftFrom;
22: private int rightFrom;
23: private int leftTo;
24: private int rightTo;
25:
26: // Accessing ==============================================================
27:
28: public int getLeftFrom() {
29: return leftFrom;
30: }
31:
32: public int getRightFrom() {
33: return rightFrom;
34: }
35:
36: public int getLeftTo() {
37: return leftTo;
38: }
39:
40: public int getRightTo() {
41: return rightTo;
42: }
43:
44: public void reset() {
45: leftFrom = 0;
46: rightFrom = 0;
47: leftTo = 0;
48: rightTo = 0;
49: }
50:
51: public void setMiddleSnake(int leftFrom, int rightFrom, int leftTo,
52: int rightTo) {
53: if (QSequenceAlgorithm.ASSERTIONS) {
54: QSequenceAssert.assertTrue(0 <= leftFrom
55: && leftFrom <= leftTo);
56: QSequenceAssert.assertTrue(0 <= rightFrom
57: && rightFrom <= rightTo);
58: }
59:
60: this.leftFrom = leftFrom;
61: this.rightFrom = rightFrom;
62: this.leftTo = leftTo;
63: this.rightTo = rightTo;
64: }
65: }
|