
de.uni.freiburg.iig.telematik.jagal.graph.exception.VertexNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JAGAL Show documentation
Show all versions of JAGAL Show documentation
JAGAL provides implementations for directed graphs (weighted and unweighted) and various types of transition systems as well as utils for graph traversal and modification.
The newest version!
package de.uni.freiburg.iig.telematik.jagal.graph.exception;
import de.uni.freiburg.iig.telematik.jagal.graph.Edge;
import de.uni.freiburg.iig.telematik.jagal.graph.Vertex;
import de.uni.freiburg.iig.telematik.jagal.graph.abstr.AbstractGraph;
public class VertexNotFoundException extends GraphException {
private static final long serialVersionUID = -2531063172019479258L;
private String messagePart = " does not contain vertex ";
private final String vertexName;
public , E extends Edge, U> VertexNotFoundException(String vertexName, AbstractGraph graph){
super(graph.getName());
this.vertexName = vertexName;
}
public , E extends Edge, U> VertexNotFoundException(String vertexName, String vertexDescription, AbstractGraph graph){
super(graph.getName());
this.vertexName = vertexName;
messagePart = " does not contain "+vertexDescription+" ";
}
@Override
public String getMessage(){
return getGraphName()+messagePart+getVertex();
}
public String getVertex(){
return vertexName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy