RePast
v. 2.0

uchicago.src.sim.engine
Class PropertyEvent

java.lang.Object
  |
  +--uchicago.src.sim.engine.PropertyEvent

public class PropertyEvent
extends Object

An event fired by changes to a model's properties/parameters. A PropertyEvent identifies the property associated with the PropertyEvent and the current value of that Property. The property identifier should be some simulation specific constant.


Constructor Summary
PropertyEvent(int propertyId, Object propertyValue)
          Creates a new PropertyEvent using the specified paramters.
 
Method Summary
 int getPropertyId()
          Gets the property identifier for this event.
 Object getPropertyValue()
          Gets the value of this property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEvent

public PropertyEvent(int propertyId,
                     Object propertyValue)
Creates a new PropertyEvent using the specified paramters.

Parameters:
propertyId - the integer identifier of the property associated with this event. This should be some simulation specific constant.
propertyValue - the value of the property.
Method Detail

getPropertyId

public int getPropertyId()
Gets the property identifier for this event.


getPropertyValue

public Object getPropertyValue()
Gets the value of this property.


RePast
v. 2.0

Bug reports and feature requests to RePast