eventlocation.java

来自「JAVA版的蚂蚁算法(Ant Colony Optimization Algor」· Java 代码 · 共 37 行

JAVA
37
字号
package dk.itu.nulx30.eventSimulation;

import dk.itu.nulx30.eventSimulation.exceptions.IllegalTimeException;

/**
 * The interface <code>EventLocation</code> specifies a location where an
 * event can occur. The classes Router and Wire implements this interface.
 *
 * @author  Mikkel Bundgaard
 * @author  Troels C. Damgaard
 * @author  Federico Decara
 * @author  Jacob W. Winther
 *
 * @see dk.itu.nulx30.networkModel.Router
 * @see dk.itu.nulx30.networkModel.Wire
 */
public interface EventLocation {

  /**
   * <code>getNextEventTime()</code> returns the next event time of this
   * <code>EventLocation</code>.
   *
   * @return the next event time of the <code>EventLocation</code>
   */
  public double getNextEventTime();

  /**
   * <code>setNextEventTime()</code> sets the new next-event time.
   *
   * @param newEventTime the new next-event time.
   *
   * @exception IllegalTimeException this exception is thrown if the new
   * next-event time is less than the old next-event time.
   */
  public void setNextEventTime( double newEventTime ) throws IllegalTimeException;
}

⌨️ 快捷键说明

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