Class ChangeEvent<T>

java.lang.Object
jadex.bdi.runtime.ChangeEvent<T>

public class ChangeEvent<T> extends Object
Event that is thrown in case of a bdi element change (belief, goal, etc.).
  • Field Details

    • FACTADDED

      public static final String FACTADDED
      Event type that a fact has been added.
      See Also:
    • FACTREMOVED

      public static final String FACTREMOVED
      Event type that a fact has been removed.
      See Also:
    • FACTCHANGED

      public static final String FACTCHANGED
      Event type that a fact has changed (property change in case of bean).
      See Also:
    • BELIEFCHANGED

      public static final String BELIEFCHANGED
      Event type that a belief value has changed (the whole value was changed).
      See Also:
    • VALUEADDED

      public static final String VALUEADDED
      Event type that a value has been added.
      See Also:
    • VALUEREMOVED

      public static final String VALUEREMOVED
      Event type that a value has been removed.
      See Also:
    • VALUECHANGED

      public static final String VALUECHANGED
      Event type that a value has changed (property change in case of bean).
      See Also:
    • PARAMETERCHANGED

      public static final String PARAMETERCHANGED
      Event type that a parameter value has changed (the whole value was changed).
      See Also:
    • GOALADOPTED

      public static final String GOALADOPTED
      Event type that a goal has been added.
      See Also:
    • GOALDROPPED

      public static final String GOALDROPPED
      Event type that a goal has been removed.
      See Also:
    • GOALACTIVE

      public static final String GOALACTIVE
      Event type that a goal has been added.
      See Also:
    • GOALOPTION

      public static final String GOALOPTION
      Event type that a goal has been optionized.
      See Also:
    • GOALSUSPENDED

      public static final String GOALSUSPENDED
      Event type that a goal has been suspended.
      See Also:
    • GOALINPROCESS

      public static final String GOALINPROCESS
      Event type that a goal has been added.
      See Also:
    • GOALNOTINPROCESS

      public static final String GOALNOTINPROCESS
      Event type that a goal has been removed.
      See Also:
    • PLANADOPTED

      public static final String PLANADOPTED
      Event type that a plan has been added.
      See Also:
    • PLANFINISHED

      public static final String PLANFINISHED
      Event type that a plan has been finished.
      See Also:
    • type

      protected String type
      The event type.
    • source

      protected Object source
      The event source.
    • value

      protected T value
      The event value.
    • info

      protected Object info
      The change identifier, e.g. index or key.
  • Constructor Details

    • ChangeEvent

      public ChangeEvent()
      Create a new ChangeEvent.
    • ChangeEvent

      public ChangeEvent(String type, Object source, T value, Object info)
      Create a new event.
      Parameters:
      type -
      source -
      value -
    • ChangeEvent

      public ChangeEvent(jadex.rules.eca.IEvent event)
      Create a new ChangeEvent.
  • Method Details

    • getType

      public String getType()
      Get the type.
      Returns:
      The type.
    • setType

      public void setType(String type)
      Set the type.
      Parameters:
      type - The type to set.
    • getSource

      public Object getSource()
      Get the source.
      Returns:
      The source.
    • setSource

      public void setSource(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 Object getInfo()
      Get the info.
      Returns:
      The info.
    • setInfo

      public void setInfo(Object info)
      Set the info.
      Parameters:
      info - The info to set.
    • toString

      public String toString()
      Get the string representation.
      Overrides:
      toString in class Object