io.github.srs.model.entity.dynamicentity.action
Members list
Type members
Classlikes
Action trait represents an action that can be performed on a dynamic entity.
Action trait represents an action that can be performed on a dynamic entity.
Type parameters
- F
-
the effect type of the action.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
ActionAlg trait defines the actions that can be performed on a dynamic entity.
ActionAlg trait defines the actions that can be performed on a dynamic entity.
It represents the algebra of actions that can be executed on a dynamic entity, such as, for example, moving the wheels.
Type parameters
- E
-
the type of dynamic entity on which the action is performed, extending DynamicEntity.
- F
-
the effect type of the action.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_ActionAlg_IO_Robot
MovementAction represents a dynamic-entity movement action characterized by the speeds applied to the left and right wheels.
MovementAction represents a dynamic-entity movement action characterized by the speeds applied to the left and right wheels.
Type parameters
- E
-
the type of dynamic entity on which the action is performed, extending DynamicEntity.
- F
-
the effect type of the action.
Value parameters
- leftSpeed
-
the speed to apply to the left wheel.
- rightSpeed
-
the speed to apply to the right wheel.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Action[F]class Objecttrait Matchableclass AnyShow all
Factory object for creating movement actions for dynamic entities. Provides methods to create custom movement actions with specified speeds for the left and right wheels, as well as predefined actions for moving forward, backward, turning left, turning right, and stopping.
Factory object for creating movement actions for dynamic entities. Provides methods to create custom movement actions with specified speeds for the left and right wheels, as well as predefined actions for moving forward, backward, turning left, turning right, and stopping.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
NoAction represents an action that does nothing on the dynamic entity.
NoAction represents an action that does nothing on the dynamic entity.
Type parameters
- F
-
the effect type of the action.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Action[F]class Objecttrait Matchableclass AnyShow all
SequenceAction represents a composite action that executes a sequence of actions in order.
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
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SequenceAction.type