Class Event
- java.lang.Object
-
- jadex.micro.examples.messagequeue.Event
-
public class Event extends java.lang.ObjectSimple message struct.
-
-
Field Summary
Fields Modifier and Type Field Description protected IComponentIdentifiersourceThe source.protected java.lang.StringtypeThe type.protected java.lang.ObjectvalueThe value.
-
Constructor Summary
Constructors Constructor Description Event()Create a new event.Event(java.lang.String type, java.lang.Object value, IComponentIdentifier source)Create a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IComponentIdentifiergetSource()Get the source.java.lang.StringgetType()Get the type.java.lang.ObjectgetValue()Get the value.voidsetSource(IComponentIdentifier source)Set the source.voidsetType(java.lang.String type)Set the type.voidsetValue(java.lang.Object value)Set the value.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
type
protected java.lang.String type
The type.
-
value
protected java.lang.Object value
The value.
-
source
protected IComponentIdentifier source
The source.
-
-
Constructor Detail
-
Event
public Event()
Create a new event.
-
Event
public Event(java.lang.String type, java.lang.Object value, IComponentIdentifier source)Create a new event.
-
-
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.
-
getValue
public java.lang.Object getValue()
Get the value.- Returns:
- The value.
-
setValue
public void setValue(java.lang.Object value)
Set the value.- Parameters:
value- The value to set.
-
getSource
public IComponentIdentifier getSource()
Get the source.- Returns:
- The source.
-
setSource
public void setSource(IComponentIdentifier source)
Set the source.- Parameters:
source- The source to set.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-