📄 entity.java
字号:
public abstract class Entity{ // Each entity will have a distance table protected int[][] distanceTable = new int[NetworkSimulator.NUMENTITIES] [NetworkSimulator.NUMENTITIES]; // The update function. Will have to be written in subclasses by students public abstract void update(Packet p); // The link cost change handlder. Will have to be written in appropriate // subclasses by students. Note that only Entity0 and Entity1 will need // this, and only if extra credit is being done public abstract void linkCostChangeHandler(int whichLink, int newCost); // Print the distance table of the current entity. protected abstract void printDT();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -