Biblioteca Java - Rev 17
Subversion Repositories:
package rtuml.capsule;
/**
* Atransition between 2 states.
* @author evo2
*
*/
public abstract class Transition {
private MState nextState;
public Transition(MState nextState) {
super();
this.nextState = nextState;
}
/**
* Return true if this transition can be executed.
* @return
*/
public abstract boolean gaurdCondition(Event e);
/**
* Return next state in case transtion can be executed
* @return
*/
public MState getNextState(){
return nextState;
}
}
/**
* Atransition between 2 states.
* @author evo2
*
*/
public abstract class Transition {
private MState nextState;
public Transition(MState nextState) {
super();
this.nextState = nextState;
}
/**
* Return true if this transition can be executed.
* @return
*/
public abstract boolean gaurdCondition(Event e);
/**
* Return next state in case transtion can be executed
* @return
*/
public MState getNextState(){
return nextState;
}
}