Class Event
- java.lang.Object
-
- jadex.micro.examples.messagequeue.Event
-
public class Event extends java.lang.Object
Simple message struct.
-
-
Field Summary
Fields Modifier and Type Field Description protected IComponentIdentifier
source
The source.protected java.lang.String
type
The type.protected java.lang.Object
value
The 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 IComponentIdentifier
getSource()
Get the source.java.lang.String
getType()
Get the type.java.lang.Object
getValue()
Get the value.void
setSource(IComponentIdentifier source)
Set the source.void
setType(java.lang.String type)
Set the type.void
setValue(java.lang.Object value)
Set the value.java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
-