CreationDSL

io.github.srs.model.environment.dsl.CreationDSL
object CreationDSL

The DSL for creating an environment in the simulation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self 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

extension (env: Environment)
infix def and(entity: Entity): Environment

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.

infix def containing(entities: Set[Entity]): Environment

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.

infix def containing(entity: Entity): Environment

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

infix def withHeight(height: Int): Environment

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

infix def withWidth(width: Int): Environment

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.