notification.java
来自「linux下用于移动节点的移动活动生成工具」· Java 代码 · 共 59 行
JAVA
59 行
package de.uni_stuttgart.informatik.canu.mobisim.core;
/**
* Title: Canu Mobility Simulation Environment
* Description:
* Copyright: Copyright (c) 2001-2003
* Company: University of Stuttgart
* @author Canu Research group
* @version 1.1
*/
/**
* A base class for notifications
* @author Illya Stepanov
*/
public class Notification
{
/**
* The sender of notification
*/
protected Object sender;
/**
* The receiver of notification
*/
protected Object receiver;
/**
* Constructor. <br>
* <br>
* @param sender the notification's sender
* @param receiver the notification's receiver
*/
public Notification(Object sender, Object receiver)
{
this.sender = sender;
this.receiver = receiver;
}
/**
* Gets the notification's sender. <br>
* <br>
* @return notification's sender
*/
public Object getSender()
{
return sender;
}
/**
* Gets the notification's receiver. <br>
* <br>
* @return notification's receiver
*/
public Object getReceiver()
{
return receiver;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?