01: /*
02: * Copyright 2005 JBoss Inc
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.drools;
18:
19: /**
20: * IndexedNumber
21: *
22: * Created: 22/06/2006
23: * @author <a href="mailto:tirelli@post.com">Edson Tirelli</a>
24: *
25: * @version $Id: IndexedNumber.java 13324 2007-07-10 23:07:58Z tirelli $
26: */
27:
28: public class IndexedNumber {
29:
30: private int number = 0;
31:
32: private int index = 0;
33:
34: private boolean printed;
35:
36: public IndexedNumber() {
37: }
38:
39: /**
40: * @param pNb
41: * @param pIndex
42: */
43: public IndexedNumber(final int pNb, final int pIndex) {
44: this .number = pNb;
45: this .index = pIndex;
46: }
47:
48: /**
49: * @return le/la/les index.
50: */
51: public int getIndex() {
52: return this .index;
53: }
54:
55: /**
56: * @param pIndex le/la/les index sauvegarder.
57: */
58: public void setIndex(final int pIndex) {
59: this .index = pIndex;
60: }
61:
62: /**
63: * @return le/la/les nb.
64: */
65: public int getNumber() {
66: return this .number;
67: }
68:
69: /**
70: * @param pNb le/la/les nb sauvegarder.
71: */
72: public void setNumber(final int pNb) {
73: this .number = pNb;
74: }
75:
76: /**
77: * {@inheritDoc}
78: */
79: public String toString() {
80: return "IndexedNumber[ " + this .number + ", " + this .index
81: + " ]";
82: }
83:
84: public boolean isPrinted() {
85: return this .printed;
86: }
87:
88: public void setPrinted(final boolean printed) {
89: this.printed = printed;
90: }
91:
92: }
|