|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.core.datatypes.MTBGraphEdge
@ALDMetaInfo(export=ALLOWED) public class MTBGraphEdge
Class implements MTBGraphEdges for the MTBGraph. Each MTBGraphEdges has data and a source / target MTBGraphNode.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MTBGraphNode<?> src
protected MTBGraphNode<?> tgt
protected double cost
protected Vector<?> edgeData
Constructor Detail |
---|
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 MTBGraphEdgeMethod Detail |
---|
public 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)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |