Last change
on this file since 13067 was
6152,
checked in by bfarka, 14 years ago
|
added ecj and custom statistics to communicate with the okb services #1441
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | Copyright 2006 by Sean Luke |
---|
3 | Licensed under the Academic Free License version 3.0 |
---|
4 | See the file "LICENSE" for more information |
---|
5 | */ |
---|
6 | |
---|
7 | |
---|
8 | /* |
---|
9 | * Created on Apr 9, 2005 8:36:42 AM |
---|
10 | * |
---|
11 | * By: spaus |
---|
12 | */ |
---|
13 | package ec.util; |
---|
14 | |
---|
15 | import java.util.EventObject; |
---|
16 | |
---|
17 | /** |
---|
18 | * @author spaus |
---|
19 | */ |
---|
20 | public class ParameterDatabaseEvent |
---|
21 | extends EventObject { |
---|
22 | |
---|
23 | public static final int SET = 0; |
---|
24 | public static final int ACCESSED = 1; |
---|
25 | |
---|
26 | private final Parameter parameter; |
---|
27 | private final String value; |
---|
28 | private final int type; |
---|
29 | |
---|
30 | /** |
---|
31 | * For ParameterDatabase events. |
---|
32 | * |
---|
33 | * @param source the ParameterDatabase |
---|
34 | * @param parameter the Parameter associated with the event |
---|
35 | * @param value the value of the Parameter associated with the event |
---|
36 | * @param type the type of the event |
---|
37 | */ |
---|
38 | public ParameterDatabaseEvent(Object source, Parameter parameter, String value, int type) { |
---|
39 | super(source); |
---|
40 | this.parameter = parameter; |
---|
41 | this.value = value; |
---|
42 | this.type = type; |
---|
43 | } |
---|
44 | |
---|
45 | /** |
---|
46 | * @return the Parameter associated with the event |
---|
47 | */ |
---|
48 | public Parameter getParameter() { |
---|
49 | return parameter; |
---|
50 | } |
---|
51 | |
---|
52 | /** |
---|
53 | * @return the value of the Parameter associated with the event. |
---|
54 | */ |
---|
55 | public String getValue() { |
---|
56 | return value; |
---|
57 | } |
---|
58 | |
---|
59 | /** |
---|
60 | * @return the type of the event. |
---|
61 | */ |
---|
62 | public int getType() { |
---|
63 | return type; |
---|
64 | } |
---|
65 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.