Source code: com/cybertivity/powerjournal/framework/ModelEvent.java
1 /*
2 * Title: Similated Intelligence
3 * Copyright: Copyright (c) 2001 Cybertivity
4 * Company: <A HREF="http://www.cybertivity.com">Cybertivity</A>
5 * @author <A HREF="mailto:chris.arrowood@cybertivity.com">Chris Arrowood</A>
6 * @version $Id: ModelEvent.java,v 1.1.1.1 2001/11/24 03:51:34 arrowood Exp $
7 */
8 package com.cybertivity.powerjournal.framework;
9
10 /**
11 * Title: Simulated Intelligence Desc: Event raised by a Model. Copyright:
12 * Copyright (c) 2001 Chris Arrowood Company: <A
13 * HREF="http://www.cybertivity.com">Cybertivity</A>
14 *
15 * @author <A HREF="mailto:chris.arrowood@cybertivity.com">Chris Arrowood
16 * </A>
17 * @created May 2, 2001
18 * @version $Id: ModelEvent.java,v 1.1.1.1 2001/11/24 03:51:34 arrowood Exp $
19 */
20
21 public class ModelEvent {
22 private Object initiator = null;
23 private String field = "";
24 private Object value = "";
25
26
27 /**
28 * Constructor for the ModelEvent object
29 *
30 * @param initiator Object that initiated the change
31 * @param field The field that has change
32 * @param value The new value of the field
33 */
34 public ModelEvent(Object initiator, String field, Object value) {
35 this.initiator = initiator;
36 this.field = field;
37 this.value = value;
38 }
39
40
41 /**
42 * Gets the Initiator attribute of the ModelEvent object
43 *
44 * @return The Initiator value
45 */
46 public Object getInitiator() {
47 return initiator;
48 }
49
50
51 /**
52 * Gets the Field attribute of the ModelEvent object
53 *
54 * @return The Field value
55 */
56 public String getField() {
57 return field;
58 }
59
60
61 /**
62 * Gets the Value attribute of the ModelEvent object
63 *
64 * @return The Value value
65 */
66 public Object getValue() {
67 return value;
68 }
69 }
70