jadex.application.space.envsupport.environment
Class EnvironmentEvent

java.lang.Object
  extended by jadex.application.space.envsupport.environment.EnvironmentEvent

public class EnvironmentEvent
extends Object

An event in the environment (related to some space object).


Field Summary
static String OBJECT_CREATED
          Event type when an object has been created.
static String OBJECT_DESTROYED
          Event type when an object has been destroyed.
static String OBJECT_PROPERTY_CHANGED
          Event type when an object has been changed.
protected  Object oldvalue
          The previous property value (if any).
protected  String property
          The property (if any).
protected  IEnvironmentSpace space
          The source space.
protected  ISpaceObject spaceobject
          The space object.
protected  String type
          The event type.
 
Constructor Summary
EnvironmentEvent(String type, IEnvironmentSpace space, ISpaceObject object, String property, Object oldvalue)
          Create a new environment event.
 
Method Summary
 Object getOldValue()
          Get the previous property value.
 String getProperty()
          Get the property.
 IEnvironmentSpace getSpace()
          Get the source space.
 ISpaceObject getSpaceObject()
          Get the space object.
 String getType()
          Get the event type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_CREATED

public static final String OBJECT_CREATED
Event type when an object has been created.

See Also:
Constant Field Values

OBJECT_DESTROYED

public static final String OBJECT_DESTROYED
Event type when an object has been destroyed.

See Also:
Constant Field Values

OBJECT_PROPERTY_CHANGED

public static final String OBJECT_PROPERTY_CHANGED
Event type when an object has been changed.

See Also:
Constant Field Values

type

protected String type
The event type.


space

protected IEnvironmentSpace space
The source space.


spaceobject

protected ISpaceObject spaceobject
The space object.


property

protected String property
The property (if any).


oldvalue

protected Object oldvalue
The previous property value (if any).

Constructor Detail

EnvironmentEvent

public EnvironmentEvent(String type,
                        IEnvironmentSpace space,
                        ISpaceObject object,
                        String property,
                        Object oldvalue)
Create a new environment event.

Method Detail

getType

public 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 String getProperty()
Get the property.

Returns:
The property.

getOldValue

public Object getOldValue()
Get the previous property value.

Returns:
The old value.


Copyright © 2010. All Rights Reserved.