ProjektGraph/graph/MarkedVertex.java

42 lines
561 B
Java
Raw Normal View History

2024-06-15 14:48:28 +00:00
package graph;
public class MarkedVertex<T extends VertexMarking> extends Vertex{
// ATTRIBUTE
2024-06-15 14:48:28 +00:00
private T marking;
// KONSTRUKTOREN
2024-06-15 14:48:28 +00:00
public MarkedVertex() {
super();
}
public MarkedVertex(String s, T t) {
super(s);
this.marking = t;
}
// GET-ER
2024-06-15 14:48:28 +00:00
public T getMarking() {
return this.marking;
}
// SET-ER
2024-06-15 14:48:28 +00:00
public void setMarking(T t) {
this.marking = t;
}
// Ausgabe
2024-06-15 14:48:28 +00:00
public String toString() {
return "MarkedVertex " + this.getName();
2024-06-15 14:48:28 +00:00
}
}