public final class ManagementGate extends ManagementAttachment
ManagementVertex. The gate is derived an input or output
gate of the actual execution vertex.
This class is not thread-safe.
| Constructor and Description |
|---|
ManagementGate(ManagementVertex managementVertex,
ManagementGateID gateID,
int index,
boolean isInputGate)
Constructs a new management gate.
|
| Modifier and Type | Method and Description |
|---|---|
ManagementEdge |
getBackwardEdge(int index)
Returns the edge arriving at the given index.
|
ManagementEdge |
getForwardEdge(int index)
Returns the edge originating at the given index.
|
ManagementGraph |
getGraph()
Returns the
ManagementGraph this gate belongs to. |
int |
getIndex()
Returns the index of this gate.
|
ManagementGateID |
getManagementGateID()
Returns the id of the management gate.
|
int |
getNumberOfBackwardEdges()
Returns the number of edges arriving at this gate.
|
int |
getNumberOfForwardEdges()
Returns the number of edges originating at this gate.
|
ManagementVertex |
getVertex()
Returns the vertex this gate belongs to.
|
boolean |
isInputGate()
Checks if this gate represents an input gate.
|
getAttachment, setAttachmentpublic ManagementGate(ManagementVertex managementVertex, ManagementGateID gateID, int index, boolean isInputGate)
managementVertex - the management vertex this gate belongs toindex - the index of this gategateID - The id of the new management gateisInputGate - true if this gate represents an input gate in the actual execution graph, false
otherwisepublic boolean isInputGate()
true if this gate represents an input gate in the actual execution graph, false
otherwisepublic ManagementGraph getGraph()
ManagementGraph this gate belongs to.public int getNumberOfForwardEdges()
public int getNumberOfBackwardEdges()
public int getIndex()
public ManagementEdge getForwardEdge(int index)
index - the index of the edge to be returnednull if no such edge existspublic ManagementEdge getBackwardEdge(int index)
index - the index of the edge to be returnednull if no such edge existspublic ManagementVertex getVertex()
public ManagementGateID getManagementGateID()
Copyright © 2014 The Apache Software Foundation. All rights reserved.