T - represents the object that is triggering the strategy (i.e. the vertex on which addEdge was called).public final class StrategyContext<T extends StrategyWrapped>
extends java.lang.Object
StrategyContext object is provided to the methods of GraphStrategy so that the strategy functions
it constructs have some knowledge of the environment.| Constructor and Description |
|---|
StrategyContext(StrategyGraph g,
T current) |
| Modifier and Type | Method and Description |
|---|---|
T |
getCurrent()
Gets the
StrategyWrapped instance that is triggering the GraphStrategy method. |
StrategyGraph |
getStrategyGraph()
Gets the current
StrategyGraph instance. |
public StrategyContext(StrategyGraph g, T current)
public T getCurrent()
StrategyWrapped instance that is triggering the GraphStrategy method.public StrategyGraph getStrategyGraph()
StrategyGraph instance.Copyright © 2013-2015 TinkerPop. All Rights Reserved.