package scheduler;

import java.io.IOException;

import communication.MessageSender;
import error.UnknownAddressException;

/**
 * Interface for all tasks to be run by the scheduler
 */
public interface SchedulerTask {

	/**
	 * Execute the elevator task
	 *
	 * @param messageSender used for any message sending the task needs to do
	 * @throws IOException if an IO exception occurs
	 */
	void run(MessageSender messageSender) throws IOException, UnknownAddressException;
}
