Exemplo n.º 1
0
 /// <summary>
 ///     REQUIRED. Adds a new branch of execution to this states branches. A parallel state must have at least one branch.
 /// </summary>
 /// <param name="branchBuilder">
 ///     Instance of <see cref="Branch.Builder" />. Note that the <see cref="Branch" /> object is not
 ///     built until the {@link ParallelState} is built so any modifications on the  state model will be reflected in this
 ///     object.
 /// </param>
 /// <returns>This object for method chaining.</returns>
 public Builder Branch(SubStateMachine.Builder branchBuilder)
 {
     _branches.Add(branchBuilder);
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     REQUIRED. Set the iterator for this MapState.
 /// </summary>
 /// <param name="iteratorBuilder">
 ///     Instance of <see cref="SubStateMachine" />. Note that the <see cref="SubStateMachine" /> object is
 ///     not built until the {@link ParallelState} is built so any modifications on the state model will be reflected in
 ///     this object.
 /// </param>
 /// <returns>This object for method chaining.</returns>
 public Builder Iterator(SubStateMachine.Builder iteratorBuilder)
 {
     _iterator = iteratorBuilder;
     return(this);
 }