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 * this Event is a algorithm step, (is it a major step) -> play one step (on AnimatorGUI) 013 * 014 * @author Omid 015 */ 016 public class AlgorithmStep implements Event { 017 018 public AlgorithmStep() { 019 020 } 021 022 public String getDescription() { 023 return "Asks the handler to make a step. For animation purposes."; 024 } 025 026 public String getMessage() { 027 return message; 028 } 029 030 public void setMessage(String message) { 031 this.message = message; 032 } 033 034 String message; 035 036 public boolean isStep() { 037 return true; 038 } 039 040 public String getID() { 041 return "Step Event"; 042 043 } 044 }