org.jbpt.petri.Transition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbpt-petri Show documentation
Show all versions of jbpt-petri Show documentation
The jBPT code library is a compendium of technologies that support research on design, execution, and evaluation of business processes.
The newest version!
package org.jbpt.petri;
/**
* Implementation of a Petri net transition.
*
* @author Artem Polyvyanyy
*/
public class Transition extends Node implements ITransition {
public Transition() {
super();
}
public Transition(String name) {
super(name);
}
public Transition(String name, String label) {
super(name,label);
}
public Transition(String name, String label, String desc) {
super(name,label,desc);
}
@Override
public boolean isSilent() {
return this.getLabel().isEmpty();
}
@Override
public boolean isObservable() {
return !this.isSilent();
}
@Override
public ITransition clone() {
return (ITransition) super.clone();
}
}