All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpt.automaton.AbstractState Maven / Gradle / Ivy

Go to download

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();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy