1
2
3
4
5
6
7 package nl.tudelft.dsol.introspection.beans;
8
9 import java.awt.Color;
10 import java.awt.Font;
11 import java.io.Serializable;
12
13 import nl.tudelft.simulation.logger.Logger;
14
15 /***
16 * @author (c) 2003 <a href="http://www.tudelft.nl">Delft University of
17 * Technology </a>, Delft, the Netherlands <br>
18 * <a href="http://www.tbm.tudelft.nl">Faculty of Technology, Policy and
19 * Management </a> <br>
20 * <a href="http://www.sk.tbm.tudelft.nl">Department of System
21 * Engineering </a> <br>
22 * Main researcher : <a
23 * href="http://www.tbm.tudelft.nl/webstaf/alexandv/">Dr. Ir. A.
24 * Verbraeck <a/><br>
25 * Assistant researchers <a
26 * href="http://www.tbm.tudelft.nl/webstaf/peterja">Ir. P.H.M. Jacobs
27 * </a> and <a href="http://www.tbm.tudelft.nl/webstaf/nielsl">Ir. N.A.
28 * Lang </a>
29 */
30 public class SubTestBean implements Serializable
31 {
32 /*** Holds value of property firstProperty. */
33 private String firstProperty = "First ;-)";
34
35 /*** Holds value of property secondProperty. */
36 private String secondProperty = "Second ;-)";
37
38 /*** Holds value of property intProp. */
39 private int intProp = 1717;
40
41 /*** Holds value of property color. */
42 private Color color = Color.BLUE;
43
44 /*** Holds value of property font. */
45 private Font font;
46
47 /*** Creates new TestBean */
48 public SubTestBean()
49 {
50 super();
51 }
52
53 /***
54 * Getter for property firstProperty.
55 *
56 * @return Value of property firstProperty.
57 */
58 public String getFirstProperty()
59 {
60 Logger
61 .info(this, "getFirstProperty", this.firstProperty
62 + "requested.");
63 return this.firstProperty;
64 }
65
66 /***
67 * Setter for property firstProperty.
68 *
69 * @param firstProperty New value of property firstProperty.
70 */
71 public void setFirstProperty(final String firstProperty)
72 {
73 Logger.info(this, "setFirstProperty", this.firstProperty + "set.");
74 this.firstProperty = firstProperty;
75 }
76
77 /***
78 * Getter for property secondProperty.
79 *
80 * @return Value of property secondProperty.
81 */
82 public String getSecondProperty()
83 {
84 Logger.info(this, "getSecondProperty", this.secondProperty
85 + "requested.");
86 return this.secondProperty;
87 }
88
89 /***
90 * Setter for property secondProperty.
91 *
92 * @param secondProperty New value of property secondProperty.
93 */
94 public void setSecondProperty(final String secondProperty)
95 {
96 Logger.info(this, "setSecondProperty", this.secondProperty + "set.");
97 this.secondProperty = secondProperty;
98 }
99
100 /***
101 * Getter for property intProp.
102 *
103 * @return Value of property intProp.
104 */
105 public int getIntProp()
106 {
107 Logger.info(this, "getIntProp", this.intProp + "requested.");
108 return this.intProp;
109 }
110
111 /***
112 * Setter for property intProp.
113 *
114 * @param intProp New value of property intProp.
115 */
116 public void setIntProp(final int intProp)
117 {
118 Logger.info(this, "setIntProp", this.intProp + "set.");
119 this.intProp = intProp;
120 }
121
122 /***
123 * Getter for property color.
124 *
125 * @return Value of property color.
126 */
127 public Color getColor()
128 {
129 return this.color;
130 }
131
132 /***
133 * Setter for property color.
134 *
135 * @param color New value of property color.
136 */
137 public void setColor(final Color color)
138 {
139 this.color = color;
140 }
141
142 /***
143 * Getter for property font.
144 *
145 * @return Value of property font.
146 */
147 public Font getFont()
148 {
149 return this.font;
150 }
151
152 /***
153 * Setter for property font.
154 *
155 * @param font New value of property font.
156 */
157 public void setFont(final Font font)
158 {
159 this.font = font;
160 }
161
162 /***
163 * @see java.lang.Object#toString()
164 */
165 public String toString()
166 {
167 return "" + this.getColor() + this.getFirstProperty() + this.getFont()
168 + this.getIntProp() + this.getSecondProperty();
169 }
170 }