All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.platform.service.clock.TickTimer Maven / Gradle / Ivy

Go to download

The Jadex platform package contains implementations of platform services as well as the platform component itself.

There is a newer version: 3.0.117
Show newest version
package jadex.platform.service.clock;

import jadex.bridge.service.types.clock.IClock;
import jadex.bridge.service.types.clock.ITimedObject;


/**
 *  A timer for waiting on clock ticks.
 */
public class TickTimer extends Timer
{
	//-------- constructors --------

	/**
	 *  Create a new timer.
	 */
	protected TickTimer(IClock clock, ITimedObject to)
	{
		super(0, clock, to);
	}
	
	/**
	 *  Cancel the timer.
	 */
	public void cancel()
	{
		clock.removeTickTimer(this);
	}
	
	/**
	 *  Change notification time.
	 *  @param The notification time.
	 */
	public void setNotificationTime(long time)
	{
		throw new UnsupportedOperationException();
	}
	
	/**
	 *  Get the string representation.
	 *  @return The string representation.
	 */
	public String toString()
	{
		return "Timer( "+number+" )";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy