CreationDSL
The DSL for creating an environment in the simulation.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CreationDSL.type
Members list
Value members
Concrete methods
Creates a new environment with default properties.
Creates a new environment with default properties.
Attributes
- Returns
-
A new instance of Environment with default values.
Extensions
Extensions
Adds an entity to the environment using infix notation.
Adds an entity to the environment using infix notation.
Value parameters
- entity
-
the entity to add to the environment.
Attributes
- Returns
-
The updated environment with the new entity added.
Adds a set of entities to the environment. This method allows for adding multiple entities at once.
Adds a set of entities to the environment. This method allows for adding multiple entities at once.
Value parameters
- entities
-
a set of entities to add to the environment.
Attributes
- Returns
-
The updated environment with the new entities added.
Adds an entity to the environment.
Adds an entity to the environment.
Value parameters
- entity
-
the entity to add to the environment.
Attributes
- Returns
-
The updated environment with the new entity added.
Validates the environment with an option to insert boundaries.
Validates the environment with an option to insert boundaries.
Attributes
- Returns
-
A Validation that contains the validated environment or an error message if validation fails.
Use simple lighting without caching
Use simple lighting without caching
Attributes
Use fast lighting (scale factor 5)
Use fast lighting (scale factor 5)
Attributes
Sets the height of the environment.
Sets the height of the environment.
Value parameters
- height
-
the height of the environment.
Attributes
- Returns
-
The updated environment with the specified height.
Use high-precision lighting (scale factor 100)
Use high-precision lighting (scale factor 100)
Attributes
Sets the width of the environment.
Sets the width of the environment.
Value parameters
- width
-
the width of the environment.
Attributes
- Returns
-
The updated environment with the specified width.