org.jbpt.automaton.AbstractState 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.automaton;
import org.jbpt.hypergraph.abs.Vertex;
import org.jbpt.petri.IFlow;
import org.jbpt.petri.IMarking;
import org.jbpt.petri.INode;
import org.jbpt.petri.IPlace;
import org.jbpt.petri.ITransition;
/**
* @author Artem Polyvyanyy
*/
public class AbstractState, N extends INode, P extends IPlace, T extends ITransition, M extends IMarking>
extends Vertex
implements IState {
private M marking = null;
protected AbstractState() {}
public AbstractState(M marking) {
this.marking = marking;
}
@Override
public M getMarking() {
return this.marking;
}
@Override
public void setMarking(M marking) {
this.marking = marking;
}
@Override
public String toString() {
return this.marking.toString();
}
@Override
public String getLabel() {
return this.toString();
}
}