Package jadex.bdi.runtime
Class ChangeEvent<T>
java.lang.Object
jadex.bdi.runtime.ChangeEvent<T>
Event that is thrown in case of a bdi element change (belief, goal, etc.).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Event type that a belief value has changed (the whole value was changed).static final String
Event type that a fact has been added.static final String
Event type that a fact has changed (property change in case of bean).static final String
Event type that a fact has been removed.static final String
Event type that a goal has been added.static final String
Event type that a goal has been added.static final String
Event type that a goal has been removed.static final String
Event type that a goal has been added.static final String
Event type that a goal has been removed.static final String
Event type that a goal has been optionized.static final String
Event type that a goal has been suspended.protected Object
The change identifier, e.g.static final String
Event type that a parameter value has changed (the whole value was changed).static final String
Event type that a plan has been added.static final String
Event type that a plan has been finished.protected Object
The event source.protected String
The event type.protected T
The event value.static final String
Event type that a value has been added.static final String
Event type that a value has changed (property change in case of bean).static final String
Event type that a value has been removed. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ChangeEvent.ChangeEvent
(jadex.rules.eca.IEvent event) Create a new ChangeEvent.ChangeEvent
(String type, Object source, T value, Object info) Create a new event. -
Method Summary
-
Field Details
-
FACTADDED
Event type that a fact has been added.- See Also:
-
FACTREMOVED
Event type that a fact has been removed.- See Also:
-
FACTCHANGED
Event type that a fact has changed (property change in case of bean).- See Also:
-
BELIEFCHANGED
Event type that a belief value has changed (the whole value was changed).- See Also:
-
VALUEADDED
Event type that a value has been added.- See Also:
-
VALUEREMOVED
Event type that a value has been removed.- See Also:
-
VALUECHANGED
Event type that a value has changed (property change in case of bean).- See Also:
-
PARAMETERCHANGED
Event type that a parameter value has changed (the whole value was changed).- See Also:
-
GOALADOPTED
Event type that a goal has been added.- See Also:
-
GOALDROPPED
Event type that a goal has been removed.- See Also:
-
GOALACTIVE
Event type that a goal has been added.- See Also:
-
GOALOPTION
Event type that a goal has been optionized.- See Also:
-
GOALSUSPENDED
Event type that a goal has been suspended.- See Also:
-
GOALINPROCESS
Event type that a goal has been added.- See Also:
-
GOALNOTINPROCESS
Event type that a goal has been removed.- See Also:
-
PLANADOPTED
Event type that a plan has been added.- See Also:
-
PLANFINISHED
Event type that a plan has been finished.- See Also:
-
type
The event type. -
source
The event source. -
value
The event value. -
info
The change identifier, e.g. index or key.
-
-
Constructor Details
-
ChangeEvent
public ChangeEvent()Create a new ChangeEvent. -
ChangeEvent
Create a new event.- Parameters:
type
-source
-value
-
-
ChangeEvent
public ChangeEvent(jadex.rules.eca.IEvent event) Create a new ChangeEvent.
-
-
Method Details
-
getType
Get the type.- Returns:
- The type.
-
setType
Set the type.- Parameters:
type
- The type to set.
-
getSource
Get the source.- Returns:
- The source.
-
setSource
Set the source.- Parameters:
source
- The source to set.
-
getValue
Get the value.- Returns:
- The value.
-
setValue
Set the value.- Parameters:
value
- The value to set.
-
getInfo
Get the info.- Returns:
- The info.
-
setInfo
Set the info.- Parameters:
info
- The info to set.
-
toString
Get the string representation.
-