01: /*
02: * Copyright 2007 Bastian Schenke Licensed under the Apache License, Version 2.0 (the "License");
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
05: * Unless required by applicable law or agreed to in writing, software distributed under the
06: * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
07: * either express or implied. See the License for the specific language governing permissions
08: * and limitations under the License.
09: */
10: package example.nz.org.take.r2ml.userv.domain;
11:
12: public class CarModel {
13: private boolean highTheftProbability = false;
14: private double basePremium = 0.0;
15: private String modelType = "";
16:
17: /**
18: * @param highTheftProbability
19: * @param basePremium
20: * @param modelType
21: */
22: public CarModel(boolean highTheftProbability, double basePremium,
23: String modelType) {
24: super ();
25: this .highTheftProbability = highTheftProbability;
26: this .basePremium = basePremium;
27: this .modelType = modelType;
28: }
29:
30: public CarModel() {
31: super ();
32: }
33:
34: public boolean isCarModel() {
35: return true;
36: }
37:
38: /**
39: * @return the basePremium
40: */
41: public double getBasePremium() {
42: return basePremium;
43: }
44:
45: /**
46: * @param basePremium the basePremium to set
47: */
48: public void setBasePremium(double basePremium) {
49: this .basePremium = basePremium;
50: }
51:
52: /**
53: * @return the highTheftProbability
54: */
55: public boolean isHighTheftProbability() {
56: return highTheftProbability;
57: }
58:
59: /**
60: * @param highTheftProbability the highTheftProbability to set
61: */
62: public void setHighTheftProbability(boolean highTheftProbability) {
63: this .highTheftProbability = highTheftProbability;
64: }
65:
66: /**
67: * @return the modelType
68: */
69: public String getModelType() {
70: return modelType;
71: }
72:
73: /**
74: * @param modelType the modelType to set
75: */
76: public void setModelType(String modelType) {
77: this .modelType = modelType;
78: }
79:
80: @Override
81: public String toString() {
82: return "CarModel[modelType=" + modelType + "]";
83: }
84: }
|