01: package org.drools.integrationtests.waltz;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: /**
20: * @author Alexander Bagerman
21: *
22: */
23:
24: public class Line {
25: private int p1;
26:
27: private int p2;
28:
29: public Line() {
30:
31: }
32:
33: public Line(final int p1, final int p2) {
34: this .p1 = p1;
35: this .p2 = p2;
36: }
37:
38: public int getP1() {
39: return this .p1;
40: }
41:
42: public void setP1(final int p1) {
43: this .p1 = p1;
44: }
45:
46: public int getP2() {
47: return this .p2;
48: }
49:
50: public void setP2(final int p2) {
51: this .p2 = p2;
52: }
53:
54: public String toString() {
55: return "{Line p1=" + this .p1 + ", p2=" + this .p2 + "}";
56: }
57: }
|