graphlab.library.event
Class GraphEvent<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graph
public final BaseGraph<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> graph
eventType
public final GraphEvent.EventType eventType
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.
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)