GraphLab Project

graphlab.library.event
Class GraphEvent<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>

java.lang.Object
  extended by graphlab.library.event.GraphEvent<VertexType,EdgeType>
All Implemented Interfaces:
Event
Direct Known Subclasses:
BaseGraphEvent

public class GraphEvent<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
extends java.lang.Object
implements Event

Author:
Omid Aladini Happens when a global event has occured on the graph.

Nested Class Summary
static class GraphEvent.EventType
           
 
Field Summary
 GraphEvent.EventType eventType
           
 BaseGraph<VertexType,EdgeType> graph
           
 
Constructor Summary
GraphEvent(BaseGraph<VertexType,EdgeType> g)
          Constructs a GraphEvent object that represents construction of a new graph.
GraphEvent(BaseGraph<VertexType,EdgeType> g, GraphEvent.EventType et)
          Constructs a GraphEvent object corresponding to graph g and event et.
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getID()
           
 java.lang.String getMessage()
           
 void setMessage(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

public final BaseGraph<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> graph

eventType

public final GraphEvent.EventType eventType
Constructor Detail

GraphEvent

public GraphEvent(BaseGraph<VertexType,EdgeType> g,
                  GraphEvent.EventType et)
Constructs a GraphEvent object corresponding to graph g and event et.

Parameters:
g - The graph related to the GraphEvent.
et - Represents type of the event happened on the graph.

GraphEvent

public GraphEvent(BaseGraph<VertexType,EdgeType> g)
Constructs a GraphEvent object that represents construction of a new graph.

Parameters:
g - Graph object that is just constructed.
Method Detail

getID

public java.lang.String getID()
Specified by:
getID in interface Event

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Event

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface Event
Returns:
a message if the algorithm want to send any of them. this message will be loged and shown to the user

setMessage

public void setMessage(java.lang.String message)

GraphLab Project