⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entity.java

📁 Network simulator developed using java programming.
💻 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 + -