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