// <pre>

package actor;

import java.util.EventObject;

public class BehaviorListChangedEvent extends EventObject
{
  // Actions on BehaviorList
  public static final int ADDED = 0;
  public static final int REMOVED = 1;
  public static final int LIST_CLEARED = 2;
  
  // Actions on AbstractBehavior (separate class?)
  public static final int CHANGED = 3;  
  
  private AbstractBehavior behavior;
  private int type = 0;

  public BehaviorListChangedEvent
    (Object src, AbstractBehavior behavior, int type) 
  {
    super(src);  
    this.type = type;
    this.behavior = behavior;
  }

  public AbstractBehavior getBehavior()
  {
    return behavior;
  }

  public void setBehavior(AbstractBehavior behavior)
  {
    this.behavior = behavior;
  }

  public int getType()
  {
    return type;
  }

  public void setType(int type)
  {
    this.type = type;
  }

}