
de.uni.freiburg.iig.telematik.jagal.ts.exception.StateNotFoundException 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.ts.exception;
import de.uni.freiburg.iig.telematik.jagal.graph.exception.VertexNotFoundException;
import de.uni.freiburg.iig.telematik.jagal.ts.abstr.AbstractState;
import de.uni.freiburg.iig.telematik.jagal.ts.abstr.AbstractTransitionRelation;
import de.uni.freiburg.iig.telematik.jagal.ts.abstr.AbstractTransitionSystem;
public class StateNotFoundException extends TSException {
private static final long serialVersionUID = -3197197858061603241L;
private static final String toStringFormat = "%s does not contain state %s";
private final String stateName;
public , T extends AbstractTransitionRelation, O extends Object>
StateNotFoundException(String stateName, AbstractTransitionSystem ts) {
super(ts.getName());
this.stateName = stateName;
}
public , T extends AbstractTransitionRelation, O extends Object>
StateNotFoundException(VertexNotFoundException graphException) {
super(graphException);
this.stateName = graphException.getVertex();
}
@Override
public String getMessage(){
return String.format(toStringFormat, getTSName(), getStateName());
}
public String getStateName(){
return stateName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy