Package jadex.bdiv3.runtime
Class ChangeEvent<T>
- java.lang.Object
-
- jadex.bdiv3.runtime.ChangeEvent<T>
-
public class ChangeEvent<T> extends java.lang.ObjectEvent that is thrown in case of a bdi element change (belief, goal, etc.).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBELIEFCHANGEDEvent type that a belief value has changed (the whole value was changed).static java.lang.StringFACTADDEDEvent type that a fact has been added.static java.lang.StringFACTCHANGEDEvent type that a fact has changed (property change in case of bean).static java.lang.StringFACTREMOVEDEvent type that a fact has been removed.static java.lang.StringGOALACTIVEEvent type that a goal has been added.static java.lang.StringGOALADOPTEDEvent type that a goal has been added.static java.lang.StringGOALDROPPEDEvent type that a goal has been removed.static java.lang.StringGOALINPROCESSEvent type that a goal has been added.static java.lang.StringGOALNOTINPROCESSEvent type that a goal has been removed.static java.lang.StringGOALOPTIONEvent type that a goal has been optionized.static java.lang.StringGOALSUSPENDEDEvent type that a goal has been suspended.protected java.lang.ObjectinfoThe change identifier, e.g.static java.lang.StringPARAMETERCHANGEDEvent type that a parameter value has changed (the whole value was changed).static java.lang.StringPLANADOPTEDEvent type that a plan has been added.static java.lang.StringPLANFINISHEDEvent type that a plan has been finished.protected java.lang.ObjectsourceThe event source.protected java.lang.StringtypeThe event type.protected TvalueThe event value.static java.lang.StringVALUEADDEDEvent type that a value has been added.static java.lang.StringVALUECHANGEDEvent type that a value has changed (property change in case of bean).static java.lang.StringVALUEREMOVEDEvent type that a value has been removed.
-
Constructor Summary
Constructors Constructor Description ChangeEvent()Create a new ChangeEvent.ChangeEvent(jadex.rules.eca.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetInfo()Get the info.java.lang.ObjectgetSource()Get the source.java.lang.StringgetType()Get the type.TgetValue()Get the value.voidsetInfo(java.lang.Object info)Set the info.voidsetSource(java.lang.Object source)Set the source.voidsetType(java.lang.String type)Set the type.voidsetValue(T value)Set the value.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
FACTADDED
public static final java.lang.String FACTADDED
Event type that a fact has been added.- See Also:
- Constant Field Values
-
FACTREMOVED
public static final java.lang.String FACTREMOVED
Event type that a fact has been removed.- See Also:
- Constant Field Values
-
FACTCHANGED
public static final java.lang.String FACTCHANGED
Event type that a fact has changed (property change in case of bean).- See Also:
- Constant Field Values
-
BELIEFCHANGED
public static final java.lang.String BELIEFCHANGED
Event type that a belief value has changed (the whole value was changed).- See Also:
- Constant Field Values
-
VALUEADDED
public static final java.lang.String VALUEADDED
Event type that a value has been added.- See Also:
- Constant Field Values
-
VALUEREMOVED
public static final java.lang.String VALUEREMOVED
Event type that a value has been removed.- See Also:
- Constant Field Values
-
VALUECHANGED
public static final java.lang.String VALUECHANGED
Event type that a value has changed (property change in case of bean).- See Also:
- Constant Field Values
-
PARAMETERCHANGED
public static final java.lang.String PARAMETERCHANGED
Event type that a parameter value has changed (the whole value was changed).- See Also:
- Constant Field Values
-
GOALADOPTED
public static final java.lang.String GOALADOPTED
Event type that a goal has been added.- See Also:
- Constant Field Values
-
GOALDROPPED
public static final java.lang.String GOALDROPPED
Event type that a goal has been removed.- See Also:
- Constant Field Values
-
GOALACTIVE
public static final java.lang.String GOALACTIVE
Event type that a goal has been added.- See Also:
- Constant Field Values
-
GOALOPTION
public static final java.lang.String GOALOPTION
Event type that a goal has been optionized.- See Also:
- Constant Field Values
-
GOALSUSPENDED
public static final java.lang.String GOALSUSPENDED
Event type that a goal has been suspended.- See Also:
- Constant Field Values
-
GOALINPROCESS
public static final java.lang.String GOALINPROCESS
Event type that a goal has been added.- See Also:
- Constant Field Values
-
GOALNOTINPROCESS
public static final java.lang.String GOALNOTINPROCESS
Event type that a goal has been removed.- See Also:
- Constant Field Values
-
PLANADOPTED
public static final java.lang.String PLANADOPTED
Event type that a plan has been added.- See Also:
- Constant Field Values
-
PLANFINISHED
public static final java.lang.String PLANFINISHED
Event type that a plan has been finished.- See Also:
- Constant Field Values
-
type
protected java.lang.String type
The event type.
-
source
protected java.lang.Object source
The event source.
-
value
protected T value
The event value.
-
info
protected java.lang.Object info
The change identifier, e.g. index or key.
-
-
Constructor Detail
-
ChangeEvent
public ChangeEvent()
Create a new ChangeEvent.
-
ChangeEvent
public ChangeEvent(java.lang.String type, java.lang.Object source, T value, java.lang.Object info)Create a new event.- Parameters:
type-source-value-
-
ChangeEvent
public ChangeEvent(jadex.rules.eca.IEvent event)
Create a new ChangeEvent.
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the type.- Returns:
- The type.
-
setType
public void setType(java.lang.String type)
Set the type.- Parameters:
type- The type to set.
-
getSource
public java.lang.Object getSource()
Get the source.- Returns:
- The source.
-
setSource
public void setSource(java.lang.Object source)
Set the source.- Parameters:
source- The source to set.
-
getValue
public T getValue()
Get the value.- Returns:
- The value.
-
setValue
public void setValue(T value)
Set the value.- Parameters:
value- The value to set.
-
getInfo
public java.lang.Object getInfo()
Get the info.- Returns:
- The info.
-
setInfo
public void setInfo(java.lang.Object info)
Set the info.- Parameters:
info- The info to set.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-