/**
 * Copyright (c) 2021, 2025 Contributors to the Eclipse Foundation
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
import "tutorial_ext.activity" // <1>

activities rampUp { // <2>
  RobotStart[give] // <3>
  RobotStart[take]
}

activities steadyFlow(anAttribute:1) // <4>
  repeat coin: [2,4] { // <5>
  yield: 1  // <6>
  MoveAndFlip(step:1,scenario:"normal") // <7>
  MoveAndFlip(step:2,scenario:"normal")
}

/** steady flow expands to: 
activities steadyFlowExpanded(anAttribute: 1) {  // <8>
    yield: 2
    MoveAndFlip(step: 1, scenario: "normal", phase: steadyFlow, coin: 2)
    MoveAndFlip(step: 2, scenario: "normal", phase: steadyFlow, coin: 2)
    MoveAndFlip(step: 1, scenario: "normal", phase: steadyFlow, coin: 4)
    MoveAndFlip(step: 2, scenario: "normal", phase: steadyFlow, coin: 4)
}
*/
activities tearDown { // <2>
  RobotStop[give]
  RobotStop[take]
}