SequenceAction

io.github.srs.model.entity.dynamicentity.action.SequenceAction
See theSequenceAction companion object
final case class SequenceAction[F[_]](actions: List[Action[F]])(using evidence$1: Monad[F]) extends Action[F]

SequenceAction represents a composite action that executes a sequence of actions in order.

Type parameters

E

the type of dynamic entity on which the action will be executed, extending DynamicEntity.

F

the effect type of the action.

Value parameters

actions

the list of actions to be executed in sequence.

monad$F$0

the implicit Monad instance for the effect type F.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Action[F]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def run[E <: DynamicEntity](dynamicEntity: E)(using a: ActionAlg[F, E]): F[E]

Runs the sequence of actions on the given dynamic entity.

Runs the sequence of actions on the given dynamic entity.

Value parameters

a

the ActionAlg to use for executing the actions.

dynamicEntity

the dynamic entity on which the actions will be executed.

Attributes

Returns

an effectful computation that results in the dynamic entity after all actions has been executed.

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product