
de.uni.freiburg.iig.telematik.jagal.visualization.flexible.AbstractLabeledTransitionSystemComponent 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.visualization.flexible;
import de.uni.freiburg.iig.telematik.jagal.ts.labeled.abstr.AbstractEvent;
import de.uni.freiburg.iig.telematik.jagal.ts.labeled.abstr.AbstractLTSState;
import de.uni.freiburg.iig.telematik.jagal.ts.labeled.abstr.AbstractLabeledTransitionRelation;
import de.uni.freiburg.iig.telematik.jagal.ts.labeled.abstr.AbstractLabeledTransitionSystem;
public class AbstractLabeledTransitionSystemComponent, E extends AbstractEvent, S extends AbstractLTSState, R extends AbstractLabeledTransitionRelation, O extends Object> extends AbstractTransitionSystemComponent {
private static final long serialVersionUID = 4091538764969398029L;
private boolean useEventLabels = false;
public AbstractLabeledTransitionSystemComponent(G ts) throws Exception {
super(ts);
}
public boolean isUseEventLabels() {
return useEventLabels;
}
public void setUseEventLabels(boolean useEventLabels) {
this.useEventLabels = useEventLabels;
}
@Override
protected String getEdgeLabel(R edge) {
if (isUseEventLabels())
return edge.getEvent().getLabel();
return edge.getEvent().getName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy