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: package org.drools.examples.manners;
17:
18: import java.io.Serializable;
19:
20: public class Seating implements Serializable {
21: /**
22: *
23: */
24: private static final long serialVersionUID = 400L;
25:
26: private int id, pid;
27:
28: private int leftSeat, rightSeat;
29:
30: private String leftGuestName, rightGuestName;
31:
32: private boolean pathDone;
33:
34: public Seating() {
35: }
36:
37: public Seating(final int id, final int pid, final boolean pathDone,
38: final int leftSeat, final String leftGuestName,
39: final int rightSeat, final String rightGuestName) {
40: super ();
41: this .id = id;
42: this .pid = pid;
43: this .pathDone = pathDone;
44: this .leftSeat = leftSeat;
45: this .leftGuestName = leftGuestName;
46: this .rightSeat = rightSeat;
47: this .rightGuestName = rightGuestName;
48: }
49:
50: public boolean isPathDone() {
51: return this .pathDone;
52: }
53:
54: public void setPathDone(final boolean pathDone) {
55: this .pathDone = pathDone;
56: }
57:
58: public int getId() {
59: return this .id;
60: }
61:
62: public String getLeftGuestName() {
63: return this .leftGuestName;
64: }
65:
66: public int getLeftSeat() {
67: return this .leftSeat;
68: }
69:
70: public int getPid() {
71: return this .pid;
72: }
73:
74: public String getRightGuestName() {
75: return this .rightGuestName;
76: }
77:
78: public int getRightSeat() {
79: return this .rightSeat;
80: }
81:
82: public String toString() {
83: return "[Seating id=" + this .id + " , pid=" + this .pid
84: + " , pathDone=" + this .pathDone + " , leftSeat="
85: + this .leftSeat + ", leftGuestName="
86: + this .leftGuestName + ", rightSeat=" + this .rightSeat
87: + ", rightGuestName=" + this .rightGuestName + "]";
88: }
89: }
|