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

📄 event.java

📁 无限传感器网络的模拟结果的图形查看环境
💻 JAVA
字号:
package fileio.event;import animation.VisualElement;import java.io.Reader;/**    This is the abstract class for events from which all other events    are extended.  It defines the interface expected for all event classes    and that they must all have a time variable.    @author Christian Nentwich*/public abstract class Event {    protected double m_time;  // Each event must know its time of occurrence    public void setTime(double time) {       m_time=time;    }    public double getTime() {      return m_time;    }    /**      Each event must be able to read its own attributes from the trace file      @param reader a BufferedReader passed to the event by the       TraceFileReader class    */    public abstract void read(Reader reader);      /**       Events must be able to return a new instance of the element associated       with the event.    */    public abstract VisualElement returnElement();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -