create

abstract fun create(directive: Directive<AnyDirective>)

Create a directive in the plan.

Contracts:

  • the driver will guarantee that the directive ID does not collide with any other directive currently in the plan.

  • the implementor must return the new directive in future calls to Plan.directives, unless it is later deleted.

  • the implementor must include the directive in future input plans for simulation, unless it is later deleted.