public class MTBGraphEdge extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
cost
Cost of the MTBGraphEdge.
|
protected Vector<?> |
edgeData
Data of the MTBGraphEdge, included in a vector object.
|
protected MTBGraphNode<?> |
src
Source node of the MTBGraphEdge.
|
protected MTBGraphNode<?> |
tgt
Target node of the MTBGraphEdge.
|
Constructor and Description |
---|
MTBGraphEdge(MTBGraphNode<?> src,
MTBGraphNode<?> tgt,
Vector<?> edgeData)
Constructor to create a new MTBGraphEdge.
|
MTBGraphEdge(MTBGraphNode<?> src,
MTBGraphNode<?> tgt,
Vector<?> edgeData,
double cost)
Constructor to create a new MTBGraphEdge.
|
Modifier and Type | Method and Description |
---|---|
double |
getCost()
Get edge cost as double value.
|
Vector<?> |
getData()
Get data for current MTBGraphEdge.
|
MTBGraphNode<?> |
getSrcNode()
Get source node of the MTBGraphEdge.
|
MTBGraphNode<?> |
getTgtNode()
Get target node of the MTBGraphEdge.
|
boolean |
nodeIsSrc(MTBGraphNode<?> node) |
boolean |
nodeIsTgt(MTBGraphNode<?> node) |
void |
setData(Vector<?> _edgeData)
Set data for current MTBGraphEdge.
|
void |
setData(Vector<?> _edgeData,
double _cost)
Set data for current MTBGraphEdge with the given cost.
|
protected void |
setSrcNode(MTBGraphNode<?> node)
Set source node of the MTBGraphEdge.
|
protected void |
setTgtNode(MTBGraphNode<?> node)
Set target node of the MTBGraphEdge.
|
String |
toString() |
protected MTBGraphNode<?> src
protected MTBGraphNode<?> tgt
protected double cost
protected Vector<?> edgeData
public MTBGraphEdge(MTBGraphNode<?> src, MTBGraphNode<?> tgt, Vector<?> edgeData)
src
- source nodetgt
- target nodeedgeData
- data of the MTBGraphEdgepublic MTBGraphEdge(MTBGraphNode<?> src, MTBGraphNode<?> tgt, Vector<?> edgeData, double cost)
src
- source nodetgt
- target nodeedgeData
- data of the MTBGraphEdgecost
- cost of the MTBGraphEdgepublic MTBGraphNode<?> getSrcNode()
protected void setSrcNode(MTBGraphNode<?> node)
public MTBGraphNode<?> getTgtNode()
protected void setTgtNode(MTBGraphNode<?> node)
public void setData(Vector<?> _edgeData, double _cost)
public void setData(Vector<?> _edgeData)
public Vector<?> getData()
public double getCost()
public boolean nodeIsSrc(MTBGraphNode<?> node)
public boolean nodeIsTgt(MTBGraphNode<?> node)
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.