public class ChangeEvent<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BELIEFCHANGED
Event type that a belief value has changed (the whole value was changed).
|
static java.lang.String |
FACTADDED
Event type that a fact has been added.
|
static java.lang.String |
FACTCHANGED
Event type that a fact has changed (property change in case of bean).
|
static java.lang.String |
FACTREMOVED
Event type that a fact has been removed.
|
static java.lang.String |
GOALACTIVE
Event type that a goal has been added.
|
static java.lang.String |
GOALADOPTED
Event type that a goal has been added.
|
static java.lang.String |
GOALDROPPED
Event type that a goal has been removed.
|
static java.lang.String |
GOALINPROCESS
Event type that a goal has been added.
|
static java.lang.String |
GOALNOTINPROCESS
Event type that a goal has been removed.
|
static java.lang.String |
GOALOPTION
Event type that a goal has been optionized.
|
static java.lang.String |
GOALSUSPENDED
Event type that a goal has been suspended.
|
protected java.lang.Object |
info
The change identifier, e.g.
|
static java.lang.String |
PARAMETERCHANGED
Event type that a parameter value has changed (the whole value was changed).
|
static java.lang.String |
PLANADOPTED
Event type that a plan has been added.
|
static java.lang.String |
PLANFINISHED
Event type that a plan has been finished.
|
protected java.lang.Object |
source
The event source.
|
protected java.lang.String |
type
The event type.
|
protected T |
value
The event value.
|
static java.lang.String |
VALUEADDED
Event type that a value has been added.
|
static java.lang.String |
VALUECHANGED
Event type that a value has changed (property change in case of bean).
|
static java.lang.String |
VALUEREMOVED
Event type that a value has been removed.
|
Constructor and Description |
---|
ChangeEvent()
Create a new ChangeEvent.
|
ChangeEvent(IEvent event)
Create a new ChangeEvent.
|
ChangeEvent(java.lang.String type,
java.lang.Object source,
T value,
java.lang.Object info)
Create a new event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getInfo()
Get the info.
|
java.lang.Object |
getSource()
Get the source.
|
java.lang.String |
getType()
Get the type.
|
T |
getValue()
Get the value.
|
void |
setInfo(java.lang.Object info)
Set the info.
|
void |
setSource(java.lang.Object source)
Set the source.
|
void |
setType(java.lang.String type)
Set the type.
|
void |
setValue(T value)
Set the value.
|
java.lang.String |
toString()
Get the string representation.
|
public static final java.lang.String FACTADDED
public static final java.lang.String FACTREMOVED
public static final java.lang.String FACTCHANGED
public static final java.lang.String BELIEFCHANGED
public static final java.lang.String VALUEADDED
public static final java.lang.String VALUEREMOVED
public static final java.lang.String VALUECHANGED
public static final java.lang.String PARAMETERCHANGED
public static final java.lang.String GOALADOPTED
public static final java.lang.String GOALDROPPED
public static final java.lang.String GOALACTIVE
public static final java.lang.String GOALOPTION
public static final java.lang.String GOALSUSPENDED
public static final java.lang.String GOALINPROCESS
public static final java.lang.String GOALNOTINPROCESS
public static final java.lang.String PLANADOPTED
public static final java.lang.String PLANFINISHED
protected java.lang.String type
protected java.lang.Object source
protected T value
protected java.lang.Object info
public ChangeEvent()
public ChangeEvent(java.lang.String type, java.lang.Object source, T value, java.lang.Object info)
type
- source
- value
- public ChangeEvent(IEvent event)
public java.lang.String getType()
public void setType(java.lang.String type)
type
- The type to set.public java.lang.Object getSource()
public void setSource(java.lang.Object source)
source
- The source to set.public T getValue()
public void setValue(T value)
value
- The value to set.public java.lang.Object getInfo()
public void setInfo(java.lang.Object info)
info
- The info to set.public java.lang.String toString()
toString
in class java.lang.Object