Class ObjectEvent
- java.lang.Object
-
- jadex.extension.envsupport.environment.ObjectEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ObjectEvent extends java.lang.Object implements java.io.Serializable
An EnvironmentObject event.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectEvent.PrimitiveEventType
Primitive Event type
-
Field Summary
Fields Modifier and Type Field Description static ObjectEvent.PrimitiveEventType
OBJECT_DESTROYED
static ObjectEvent.PrimitiveEventType
OBJECT_REMOVED
protected java.util.Map
parameters
The parameters.protected java.lang.Object
type
Event type.
-
Constructor Summary
Constructors Constructor Description ObjectEvent(java.lang.Object type)
Creates a new ObjectEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getParameter(java.lang.String parameter)
Returns an event parameter.java.util.Set
getParameters()
Returns the parameters.java.lang.Object
getType()
Returns the event type.boolean
hasParameters()
Returns whether the event has parameters.void
setParameter(java.lang.String parameter, java.lang.Object obj)
Sets an event parameter.
-
-
-
Field Detail
-
OBJECT_DESTROYED
public static final ObjectEvent.PrimitiveEventType OBJECT_DESTROYED
-
OBJECT_REMOVED
public static final ObjectEvent.PrimitiveEventType OBJECT_REMOVED
-
type
protected java.lang.Object type
Event type.
-
parameters
protected java.util.Map parameters
The parameters.
-
-
Method Detail
-
getType
public java.lang.Object getType()
Returns the event type.- Returns:
- event type
-
hasParameters
public boolean hasParameters()
Returns whether the event has parameters.- Returns:
- true, if the event has parameters
-
getParameters
public java.util.Set getParameters()
Returns the parameters.- Returns:
- parameters as Set of Map.Entry
-
getParameter
public java.lang.Object getParameter(java.lang.String parameter)
Returns an event parameter.- Parameters:
parameter
- parameter name- Returns:
- event parameter
-
setParameter
public void setParameter(java.lang.String parameter, java.lang.Object obj)
Sets an event parameter.- Parameters:
parameter
- parameter nameobj
- parameter object
-
-