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 package graphlab.library.event; 006 007 import graphlab.library.BaseEdge; 008 import graphlab.library.BaseGraph; 009 import graphlab.library.BaseVertex; 010 011 public class PreWorkEvent<VertexType extends BaseVertex, EdgeType extends BaseEdge<VertexType>> 012 implements Event { 013 final public VertexType from; 014 final public VertexType to; 015 final public BaseGraph<VertexType, EdgeType> graph; 016 017 public PreWorkEvent(VertexType from, VertexType to, BaseGraph<VertexType, EdgeType> graph) { 018 this.from = from; 019 this.to = to; 020 this.graph = graph; 021 } 022 023 public String getID() { 024 return "Prework"; 025 } 026 027 public String getDescription() { 028 return "Prework event occurred."; 029 } 030 031 private String message; 032 033 public String getMessage() { 034 return message; 035 } 036 037 public void setMessage(String message) { 038 this.message = message; 039 } 040 }