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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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- 
FACTADDEDpublic static final java.lang.String FACTADDED Event type that a fact has been added.- See Also:
- Constant Field Values
 
 - 
FACTREMOVEDpublic static final java.lang.String FACTREMOVED Event type that a fact has been removed.- See Also:
- Constant Field Values
 
 - 
FACTCHANGEDpublic static final java.lang.String FACTCHANGED Event type that a fact has changed (property change in case of bean).- See Also:
- Constant Field Values
 
 - 
BELIEFCHANGEDpublic static final java.lang.String BELIEFCHANGED Event type that a belief value has changed (the whole value was changed).- See Also:
- Constant Field Values
 
 - 
VALUEADDEDpublic static final java.lang.String VALUEADDED Event type that a value has been added.- See Also:
- Constant Field Values
 
 - 
VALUEREMOVEDpublic static final java.lang.String VALUEREMOVED Event type that a value has been removed.- See Also:
- Constant Field Values
 
 - 
VALUECHANGEDpublic static final java.lang.String VALUECHANGED Event type that a value has changed (property change in case of bean).- See Also:
- Constant Field Values
 
 - 
PARAMETERCHANGEDpublic static final java.lang.String PARAMETERCHANGED Event type that a parameter value has changed (the whole value was changed).- See Also:
- Constant Field Values
 
 - 
GOALADOPTEDpublic static final java.lang.String GOALADOPTED Event type that a goal has been added.- See Also:
- Constant Field Values
 
 - 
GOALDROPPEDpublic static final java.lang.String GOALDROPPED Event type that a goal has been removed.- See Also:
- Constant Field Values
 
 - 
GOALACTIVEpublic static final java.lang.String GOALACTIVE Event type that a goal has been added.- See Also:
- Constant Field Values
 
 - 
GOALOPTIONpublic static final java.lang.String GOALOPTION Event type that a goal has been optionized.- See Also:
- Constant Field Values
 
 - 
GOALSUSPENDEDpublic static final java.lang.String GOALSUSPENDED Event type that a goal has been suspended.- See Also:
- Constant Field Values
 
 - 
GOALINPROCESSpublic static final java.lang.String GOALINPROCESS Event type that a goal has been added.- See Also:
- Constant Field Values
 
 - 
GOALNOTINPROCESSpublic static final java.lang.String GOALNOTINPROCESS Event type that a goal has been removed.- See Also:
- Constant Field Values
 
 - 
PLANADOPTEDpublic static final java.lang.String PLANADOPTED Event type that a plan has been added.- See Also:
- Constant Field Values
 
 - 
PLANFINISHEDpublic static final java.lang.String PLANFINISHED Event type that a plan has been finished.- See Also:
- Constant Field Values
 
 - 
typeprotected java.lang.String type The event type.
 - 
sourceprotected java.lang.Object source The event source.
 - 
valueprotected T value The event value.
 - 
infoprotected java.lang.Object info The change identifier, e.g. index or key.
 
- 
 - 
Constructor Detail- 
ChangeEventpublic ChangeEvent() Create a new ChangeEvent.
 - 
ChangeEventpublic ChangeEvent(java.lang.String type, java.lang.Object source, T value, java.lang.Object info)Create a new event.- Parameters:
- type-
- source-
- value-
 
 - 
ChangeEventpublic ChangeEvent(jadex.rules.eca.IEvent event) Create a new ChangeEvent.
 
- 
 - 
Method Detail- 
getTypepublic java.lang.String getType() Get the type.- Returns:
- The type.
 
 - 
setTypepublic void setType(java.lang.String type) Set the type.- Parameters:
- type- The type to set.
 
 - 
getSourcepublic java.lang.Object getSource() Get the source.- Returns:
- The source.
 
 - 
setSourcepublic void setSource(java.lang.Object source) Set the source.- Parameters:
- source- The source to set.
 
 - 
getValuepublic T getValue() Get the value.- Returns:
- The value.
 
 - 
setValuepublic void setValue(T value) Set the value.- Parameters:
- value- The value to set.
 
 - 
getInfopublic java.lang.Object getInfo() Get the info.- Returns:
- The info.
 
 - 
setInfopublic void setInfo(java.lang.Object info) Set the info.- Parameters:
- info- The info to set.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-