BoundaryDsl

io.github.srs.model.entity.staticentity.dsl.BoundaryDsl
object BoundaryDsl

The DSL for creating and configuring boundaries in the simulation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates a new boundary with default properties.

Creates a new boundary with default properties.

Attributes

Returns

A new instance of Boundary with default values.

Extensions

Extensions

extension (boundary: Boundary)
infix def at(pos: Point2D): Boundary

Sets the position of the boundary.

Sets the position of the boundary.

Value parameters

pos

the position of the boundary.

Attributes

Returns

The updated boundary with the specified position.

Validates the boundary's properties. This method allows ensuring that the boundary properties reflect domain constraints.

Validates the boundary's properties. This method allows ensuring that the boundary properties reflect domain constraints.

Attributes

Returns

Right with the updated Boundary if valid, otherwise Left with a validation error.

infix def withHeight(height: Double): Boundary

Sets the height of the boundary.

Sets the height of the boundary.

Value parameters

height

the height of the boundary.

Attributes

Returns

The updated boundary with the specified height.

infix def withId(id: UUID): Boundary

Sets the unique identifier for the boundary.

Sets the unique identifier for the boundary.

Value parameters

id

the unique identifier for the boundary.

Attributes

Returns

the updated boundary with the specified identifier.

infix def withOrientation(orientation: Orientation): Boundary

Sets the orientation of the boundary.

Sets the orientation of the boundary.

Value parameters

orientation

the orientation of the boundary.

Attributes

Returns

The updated boundary with the specified orientation.

infix def withWidth(width: Double): Boundary

Sets the width of the boundary.

Sets the width of the boundary.

Value parameters

width

the width of the boundary.

Attributes

Returns

The updated boundary with the specified width.