Biblioteca Java - Blame information for rev 17
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
17 | mihai | 1 | package rtuml.capsule; |
2 | |||
3 | |||
4 | /** | ||
5 | * Atransition between 2 states. | ||
6 | * @author evo2 | ||
7 | * | ||
8 | */ | ||
9 | public abstract class Transition { | ||
10 | private MState nextState; | ||
11 | |||
12 | |||
13 | public Transition(MState nextState) { | ||
14 | super(); | ||
15 | this.nextState = nextState; | ||
16 | } | ||
17 | |||
18 | /** | ||
19 | * Return true if this transition can be executed. | ||
20 | * @return | ||
21 | */ | ||
22 | public abstract boolean gaurdCondition(Event e); | ||
23 | |||
24 | /** | ||
25 | * Return next state in case transtion can be executed | ||
26 | * @return | ||
27 | */ | ||
28 | public MState getNextState(){ | ||
29 | return nextState; | ||
30 | } | ||
31 | } |