ObstacleDsl
The DSL for creating and configuring obstacles in the simulation.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ObstacleDsl.type
Members list
Extensions
Extensions
Sets the position of the obstacle.
Sets the position of the obstacle.
Value parameters
- pos
-
the position of the obstacle.
Attributes
- Returns
-
The updated obstacle with the specified position.
Validates the obstacle's properties. This method allows ensuring that the obstacle properties reflect domain constraints.
Validates the obstacle's properties. This method allows ensuring that the obstacle properties reflect domain constraints.
Attributes
- Returns
-
Right if the obstacle is valid, otherwise Left with an error message.
Sets the height of the obstacle.
Sets the height of the obstacle.
Value parameters
- height
-
the height of the obstacle.
Attributes
- Returns
-
The updated obstacle with the specified height.
Sets the unique identifier for the obstacle.
Sets the unique identifier for the obstacle.
Value parameters
- id
-
the unique identifier for the obstacle.
Attributes
- Returns
-
the updated obstacle with the specified identifier.
Sets the orientation of the obstacle.
Sets the orientation of the obstacle.
Value parameters
- orientation
-
the orientation of the obstacle.
Attributes
- Returns
-
The updated obstacle with the specified orientation.