Class EnvironmentEvent
- java.lang.Object
-
- jadex.extension.envsupport.environment.EnvironmentEvent
-
public class EnvironmentEvent extends java.lang.Object
An event in the environment (related to some space object).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OBJECT_CREATED
Event type when an object has been created.static java.lang.String
OBJECT_DESTROYED
Event type when an object has been destroyed.static java.lang.String
OBJECT_PROPERTY_CHANGED
Event type when an object has been changed.protected java.lang.Object
oldvalue
The previous property value (if any).protected java.lang.String
property
The property (if any).protected IEnvironmentSpace
space
The source space.protected ISpaceObject
spaceobject
The space object.protected java.lang.String
type
The event type.
-
Constructor Summary
Constructors Constructor Description EnvironmentEvent(java.lang.String type, IEnvironmentSpace space, ISpaceObject object, java.lang.String property, java.lang.Object oldvalue)
Create a new environment event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getOldValue()
Get the previous property value.java.lang.String
getProperty()
Get the property.IEnvironmentSpace
getSpace()
Get the source space.ISpaceObject
getSpaceObject()
Get the space object.java.lang.String
getType()
Get the event type.
-
-
-
Field Detail
-
OBJECT_CREATED
public static final java.lang.String OBJECT_CREATED
Event type when an object has been created.- See Also:
- Constant Field Values
-
OBJECT_DESTROYED
public static final java.lang.String OBJECT_DESTROYED
Event type when an object has been destroyed.- See Also:
- Constant Field Values
-
OBJECT_PROPERTY_CHANGED
public static final java.lang.String OBJECT_PROPERTY_CHANGED
Event type when an object has been changed.- See Also:
- Constant Field Values
-
type
protected java.lang.String type
The event type.
-
space
protected IEnvironmentSpace space
The source space.
-
spaceobject
protected ISpaceObject spaceobject
The space object.
-
property
protected java.lang.String property
The property (if any).
-
oldvalue
protected java.lang.Object oldvalue
The previous property value (if any).
-
-
Constructor Detail
-
EnvironmentEvent
public EnvironmentEvent(java.lang.String type, IEnvironmentSpace space, ISpaceObject object, java.lang.String property, java.lang.Object oldvalue)
Create a new environment event.
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the event type.- Returns:
- The event type.
-
getSpace
public IEnvironmentSpace getSpace()
Get the source space.- Returns:
- The source.
-
getSpaceObject
public ISpaceObject getSpaceObject()
Get the space object.- Returns:
- The space object.
-
getProperty
public java.lang.String getProperty()
Get the property.- Returns:
- The property.
-
getOldValue
public java.lang.Object getOldValue()
Get the previous property value.- Returns:
- The old value.
-
-