event.java

来自「无限传感器网络的模拟结果的图形查看环境」· Java 代码 · 共 43 行

JAVA
43
字号
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 + =
减小字号Ctrl + -
显示快捷键?