2024-06-15 16:48:28 +02:00
|
|
|
package graph;
|
|
|
|
|
|
|
|
public abstract class Vertex {
|
|
|
|
|
2024-06-15 21:55:30 +02:00
|
|
|
// ATTRIBUTE
|
|
|
|
|
2024-06-15 16:48:28 +02:00
|
|
|
private String name;
|
|
|
|
|
2024-06-15 21:55:30 +02:00
|
|
|
|
|
|
|
// KONSTRUKTOREN
|
|
|
|
|
2024-06-15 16:48:28 +02:00
|
|
|
public Vertex() {
|
|
|
|
this.name = "";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Vertex(String s) {
|
|
|
|
this.name = s;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-06-15 21:55:30 +02:00
|
|
|
// GET-ER
|
|
|
|
|
2024-06-15 16:48:28 +02:00
|
|
|
public String getName() {
|
|
|
|
return this.name;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-07-03 00:46:21 +02:00
|
|
|
public abstract visualizationElements.Vertex getScreenVertex();
|
|
|
|
|
2024-06-25 17:18:34 +02:00
|
|
|
|
2024-06-15 21:55:30 +02:00
|
|
|
// SET-ER
|
|
|
|
|
2024-06-15 16:48:28 +02:00
|
|
|
public void setName(String s) {
|
|
|
|
this.name = s;
|
|
|
|
}
|
2024-06-25 17:18:34 +02:00
|
|
|
|
2024-06-15 16:48:28 +02:00
|
|
|
}
|