001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU Lesser General Public License (LGPL): http://www.gnu.org/licenses/ 004 005 /** 006 * 007 */ 008 package graphlab.library.event; 009 010 011 /** 012 * @author Omid 013 */ 014 public class DelayEvent implements Event { 015 016 public int millisecond; 017 018 public DelayEvent(int millisecond) { 019 this.millisecond = millisecond; 020 021 } 022 023 public String getDescription() { 024 return "Asks the handler to make a algorithmStep. For animation purposes."; 025 } 026 027 public String getID() { 028 return "DelayEvent"; 029 030 } 031 032 private String message; 033 034 public String getMessage() { 035 return message; 036 } 037 038 public void setMessage(String message) { 039 this.message = message; 040 } 041 042 }