V - the graph vertex typeE - the graph edge typepublic class GraphEdgeChangeEvent<V,E> extends GraphChangeEvent
GraphChangeEvent.getType() method.| Modifier and Type | Field and Description |
|---|---|
static int |
BEFORE_EDGE_ADDED
Before edge added event.
|
static int |
BEFORE_EDGE_REMOVED
Before edge removed event.
|
protected E |
edge
The edge that this event is related to.
|
static int |
EDGE_ADDED
Edge added event.
|
static int |
EDGE_REMOVED
Edge removed event.
|
static int |
EDGE_WEIGHT_UPDATED
Edge weight updated event.
|
protected V |
edgeSource
The source vertex of the edge that this event is related to.
|
protected V |
edgeTarget
The target vertex of the edge that this event is related to.
|
protected double |
edgeWeight
The weight of the edge that this event is related to.
|
typesource| Constructor and Description |
|---|
GraphEdgeChangeEvent(Object eventSource,
int type,
E edge,
V edgeSource,
V edgeTarget)
Constructor for GraphEdgeChangeEvent.
|
GraphEdgeChangeEvent(Object eventSource,
int type,
E edge,
V edgeSource,
V edgeTarget,
double edgeWeight)
Constructor for GraphEdgeChangeEvent.
|
| Modifier and Type | Method and Description |
|---|---|
E |
getEdge()
Returns the edge that this event is related to.
|
V |
getEdgeSource()
Returns the source vertex that this event is related to.
|
V |
getEdgeTarget()
Returns the target vertex that this event is related to.
|
double |
getEdgeWeight()
Returns the weight of the edge that this event is related to.
|
getTypegetSource, toStringpublic static final int BEFORE_EDGE_ADDED
public static final int BEFORE_EDGE_REMOVED
public static final int EDGE_ADDED
public static final int EDGE_REMOVED
public static final int EDGE_WEIGHT_UPDATED
protected E edge
protected V edgeSource
protected V edgeTarget
protected double edgeWeight
public GraphEdgeChangeEvent(Object eventSource, int type, E edge, V edgeSource, V edgeTarget)
eventSource - the source of this event.type - the event type of this event.edge - the edge that this event is related to.edgeSource - edge source vertexedgeTarget - edge target vertexpublic GraphEdgeChangeEvent(Object eventSource, int type, E edge, V edgeSource, V edgeTarget, double edgeWeight)
eventSource - the source of this event.type - the event type of this event.edge - the edge that this event is related to.edgeSource - edge source vertexedgeTarget - edge target vertexedgeWeight - edge weightpublic E getEdge()
public V getEdgeSource()
public V getEdgeTarget()
public double getEdgeWeight()
Copyright © 2019. All rights reserved.