View Javadoc

    1   /*
    2    *
    3    *   Copyright 2005 The Apache Software Foundation.
    4    *
    5    *  Licensed under the Apache License, Version 2.0 (the "License");
    6    *  you may not use this file except in compliance with the License.
    7    *  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   *  Unless required by applicable law or agreed to in writing, software
    12   *  distributed under the License is distributed on an "AS IS" BASIS,
    13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   *  See the License for the specific language governing permissions and
    15   *  limitations under the License.
    16   *
    17   */
    18  package org.apache.commons.scxml.model;
    19
    20  /***
    21   * The class in this SCXML object model that corresponds to the
    22   * &lt;initial&gt; 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