org.openware.loadsim.simulation
Interface ITimer
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- ConstantTimer, GaussianTimer
- public interface ITimer
- extends java.io.Serializable
Iterface that all timer classes must implement. Timers are used to add a
random delay between the successful download of the next page and the
submission of the next link.
- Author:
- Vincent Sheffer.
Method Summary |
java.lang.String |
getId()
Get the ID of the timer. |
long |
nextDelay()
Get the next delay for this timer. |
nextDelay
public long nextDelay()
- Get the next delay for this timer.
- Returns:
- The next delay that can be used in a
Thread.sleep()
method.
getId
public java.lang.String getId()
- Get the ID of the timer. The ID is used to reference the timer in the
configuration file.
- Returns:
- The ID of the timer.
Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.