Class Event

java.lang.Object
jadex.rules.eca.Event
All Implemented Interfaces:
IEvent

public class Event extends Object implements IEvent
Representation of an event.
  • Field Details

    • type

      protected EventType type
      The event type.
    • content

      protected Object content
      The event content.
  • Constructor Details

    • Event

      public Event()
      Create a new Event.
    • Event

      public Event(EventType type, Object content)
      Create a new event.
  • Method Details

    • getType

      public EventType getType()
      Get the type.
      Specified by:
      getType in interface IEvent
      Returns:
      the type.
    • setType

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

      public Object getContent()
      Get the content.
      Specified by:
      getContent in interface IEvent
      Returns:
      the content.
    • setContent

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

      public String toString()
      Overrides:
      toString in class Object