/* * Filename: Transition.java * * Author: Raf Van de Plas * * Contact: * Snail-mail: K.U.Leuven * ESAT-SCD * Kasteelpark Arenberg 10 * B-3001 Leuven-Heverlee * Belgium * Tel: +32 16 327927 * Fax: +32 16 321970 * Gsm: +32 474 243046 * E-mail: raf.vandeplas@esat.kuleuven.ac.be * WWW: http://www.esat.kuleuven.ac.be/~dna/BioI/ * * * Created on: Dec 3, 2003 * * Changed on: Dec 3, 2003 * * Version: 0.1 * * Description: * none * */ /** * @author rvdplas * * To change the template for this generated type comment go to * Window - Preferences - Java - Code Generation - Code and Comments */ public class Transition { private State sourceState = null; private State targetState = null; private String requiredStateMessage = null; private String requiredControlMessage = null; public Transition(State sourceState, State targetState, String requiredStateMessage, String requiredControlMessage) { this.sourceState = sourceState; this.targetState = targetState; //If any of the two messages is passed a 'null' //we interpret this as a 'don't care'. this.requiredStateMessage = requiredStateMessage; this.requiredControlMessage = requiredControlMessage; } /** * @return Returns the sourceState. */ public State getSourceState() { return this.sourceState; } /** * @return Returns the targetState. */ public State getTargetState() { return this.targetState; } /** * @return Returns the requiredStateMessage. */ public String getRequiredStateMessage() { return this.requiredStateMessage; } /** * @return Returns the requiredControlMessage. */ public String getRequiredControlMessage() { return this.requiredControlMessage; } }