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

com.atomikos.finitestates.FSMTransitionEvent Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
/**
 * Copyright (C) 2000-2023 Atomikos 
 *
 * LICENSE CONDITIONS
 *
 * See http://www.atomikos.com/Main/WhichLicenseApplies for details.
 */

package com.atomikos.finitestates;

import java.util.EventObject;

import com.atomikos.recovery.TxState;

public class FSMTransitionEvent extends EventObject{

	private static final long serialVersionUID = 7629493293234798149L;

	protected final Transition transition;

	public FSMTransitionEvent(Object source,Transition transition){
		super(source);
		this.transition = transition;
	}
	
	public TxState fromState(){
		return transition.from;
	}

	public TxState toState(){
		return transition.to;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy