Package jadex.rules.eca
Class Event
- java.lang.Object
-
- jadex.rules.eca.Event
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent()Get the content.EventTypegetType()Get the type.voidsetContent(java.lang.Object content)Set the content.voidsetType(EventType type)Set the type.java.lang.StringtoString()
-
-
-
Field Detail
-
type
protected EventType type
The event type.
-
content
protected java.lang.Object content
The event content.
-
-
Constructor Detail
-
Event
public Event()
Create a new Event.
-
Event
public Event(java.lang.String type, java.lang.Object content)Create a new event.
-
Event
public Event(EventType type, java.lang.Object content)
Create a new event.
-
-
Method Detail
-
getType
public EventType getType()
Get the type.
-
setType
public void setType(EventType type)
Set the type.- Parameters:
type- The type to set.
-
getContent
public java.lang.Object getContent()
Get the content.- Specified by:
getContentin interfaceIEvent- Returns:
- the content.
-
setContent
public void setContent(java.lang.Object content)
Set the content.- Parameters:
content- The content to set.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-