Class Edge
java.lang.Object
ch.ladestation.connectncharge.pui.Component
ch.ladestation.connectncharge.model.game.gamelogic.Segment
ch.ladestation.connectncharge.model.game.gamelogic.Edge
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEdge
(int index, int startIndex, int endIndex, int cost, int fromNodeId, int toNodeId) -
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
int
int
boolean
isOn()
void
setFromNode
(Node fromNode) void
toString()
Methods inherited from class ch.ladestation.connectncharge.model.game.gamelogic.Segment
activeEdgesContains, activeTerminalsContains, getColor, getEndIndex, getSegmentIndex, getStartIndex, setActiveEdgesRef, setActiveTerminalsRef, setColor
-
Constructor Details
-
Edge
public Edge(int index, int startIndex, int endIndex, int cost, int fromNodeId, int toNodeId)
-
-
Method Details