io.github.srs.model.entity.dynamicentity.agent.dsl
Members list
Type members
Classlikes
object AgentDsl
The DSL for creating and configuring an Agent entity.
The DSL for creating and configuring an Agent entity.
Attributes
- Example
-
import io.github.srs.model.entity.dynamicentity.agent.dsl.AgentDsl.* val myAgent = agent at Point2D(1.0, 2.0) withShape ShapeType.Circle(0.5) withOrientation Orientation(90.0) containing WheelMotor() withSensors SensorSuite.empty myAgent.validate match case Right(validAgent) => println(s"Valid agent: $validAgent") case Left(error) => println(s"Validation error: $error.errorMessage") - Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AgentDsl.type
In this article