Package graph
Klasse MarkedEdge<U extends EdgeMarking>
java.lang.Object
graph.Edge
graph.MarkedEdge<U>
- Typparameter:
U
- A type that extends EdgeMarking, used for marking the edge.
The MarkedEdge class extends the Edge class and includes additional attributes
for marking and visualization on a screen. It supports constructors to initialize
these attributes and provides getter and setter methods for accessing and modifying them.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungDefault constructor initializes the edge with default values.MarkedEdge
(String s, Vertex n1, Vertex n2, U u) Constructor initializes the edge with a name, vertices, and marking. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the marking of the edge.Gets the screen edge used for visualization.void
setMarking
(U u) Sets the marking of the edge.toString()
Returns a string representation of the MarkedEdge.Von Klasse geerbte Methoden graph.Edge
getDestination, getName, getSource, setDestination, setName, setSource
-
Felddetails
-
marking
-
screenEdge
-
-
Konstruktordetails
-
MarkedEdge
public MarkedEdge()Default constructor initializes the edge with default values. -
MarkedEdge
Constructor initializes the edge with a name, vertices, and marking.- Parameter:
s
- The name of the edge.n1
- The source vertex of the edge.n2
- The destination vertex of the edge.u
- The marking of the edge.
-
-
Methodendetails
-
getMarking
Gets the marking of the edge.- Gibt zurück:
- The marking of the edge.
-
getScreenEdge
Gets the screen edge used for visualization.- Angegeben von:
getScreenEdge
in KlasseEdge
- Gibt zurück:
- The screen edge.
-
setMarking
Sets the marking of the edge.- Parameter:
u
- The new marking of the edge.
-
toString
Returns a string representation of the MarkedEdge.
-