001 /* 002 * Copyright (c) 2003, The Regents of the University of California, through 003 * Lawrence Berkeley National Laboratory (subject to receipt of any required 004 * approvals from the U.S. Dept. of Energy). All rights reserved. 005 */ 006 007 package gov.lbl.dsd.sea.event; 008 009 import gov.lbl.dsd.sea.Stage; 010 011 /** 012 * An event containing the stage from which the event originates; useful for 013 * associating requests/responses, to determine which stage to reply to, or 014 * simply for debugging purposes. 015 * 016 * @author whoschek@lbl.gov, modified by kberket@lbl.gov 017 * @author $Author: hoschek3 $ 018 * @version $Revision: 1.3 $, $Date: 2004/07/27 05:08:08 $ 019 */ 020 021 public class CallbackEvent { 022 023 protected Stage source; // the stage that produced and issues this event 024 025 public CallbackEvent(Stage source) { 026 this.source = source; 027 } 028 029 public Stage getSource() { 030 return this.source; 031 } 032 033 public String toString() { 034 return this.getClass().getName() + ": source=" + getSource(); 035 } 036 }