📄 simevent.java
字号:
/*
JaNetSim --- Java Network Simulator
-------------------------------------
This software was developed at the Network Research Lab, Faculty of
Computer Science and Information Technology (FCSIT), University of Malaya.
This software may be used and distributed freely. FCSIT assumes no responsibility
whatsoever for its use by other parties, and makes no guarantees, expressed or
implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
FCSIT ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND
DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING
FROM THE USE OF THIS SOFTWARE.
*/
package janetsim;
public class SimEvent implements java.io.Serializable {
private int type;
private SimListener source;
private SimListener destination;
private long tick;
private Object parameters;
public SimEvent(int aType,SimListener src,SimListener dest,long aTick,Object params) {
type = aType;
source = src;
destination = dest;
tick = aTick;
parameters = params;
}
public int getType() {
return type;
}
public SimListener getSource() {
return source;
}
public SimListener getDest() {
return destination;
}
public long getTick() {
return tick;
}
public Object getParams() {
return parameters;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -