callbackevent.java
来自「sea是一个基于seda模式的实现。这个设计模式将系统分为很多stage。每个s」· Java 代码 · 共 36 行
JAVA
36 行
/* * Copyright (c) 2003, The Regents of the University of California, through * Lawrence Berkeley National Laboratory (subject to receipt of any required * approvals from the U.S. Dept. of Energy). All rights reserved. */package gov.lbl.dsd.sea.event;import gov.lbl.dsd.sea.Stage;/** * An event containing the stage from which the event originates; useful for * associating requests/responses, to determine which stage to reply to, or * simply for debugging purposes. * * @author whoschek@lbl.gov, modified by kberket@lbl.gov * @author $Author: hoschek3 $ * @version $Revision: 1.3 $, $Date: 2004/07/27 05:08:08 $ */public class CallbackEvent { protected Stage source; // the stage that produced and issues this event public CallbackEvent(Stage source) { this.source = source; } public Stage getSource() { return this.source; } public String toString() { return this.getClass().getName() + ": source=" + getSource(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?