📄 eventlocation.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -