1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.scxml.model;
19
20 /***
21 * The class in this SCXML object model that corresponds to the
22 * <initial> SCXML pseudo state element.
23 *
24 */
25 public class Initial extends TransitionTarget {
26
27 /***
28 * A conditionless transition that is always enabled and will be taken
29 * as soon as the state is entered. The target of the transition must
30 * be a descendant of the parent state of initial.
31 */
32 private Transition transition;
33
34 /***
35 * Constructor.
36 */
37 public Initial() {
38 super();
39 }
40
41 /***
42 * Get the initial transition.
43 *
44 * @return Returns the transition.
45 */
46 public final Transition getTransition() {
47 return transition;
48 }
49
50 /***
51 * Set the initial transition.
52 *
53 * @param transition The transition to set.
54 */
55 public final void setTransition(final Transition transition) {
56 this.transition = transition;
57 }
58
59 }
60