io.github.srs.model.entity.dynamicentity.agent.Agent
See theAgent companion class
object Agent
Attributes
Members list
Type members
Classlikes
object given_ActionAlgebra_IO_Agent extends ActionAlgebra[IO, Agent]
Attributes
- Supertypes
- Self type
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
def apply(id: UUID = ..., position: Point2D = ..., shape: Circle = ..., orientation: Orientation = ..., actuators: Seq[Actuator[Agent]] = ..., sensors: Vector[Sensor[Agent, Environment]] = ..., reward: Reward = ..., termination: Termination = ..., truncation: Truncation = ..., action: Option[Action[IO]] = ..., visitedCountPositions: Map[(Int, Int), Double] = ..., aliveSteps: Int = ..., didCollide: Boolean = ...): Agent
Creates a new instance of an Agent with the specified or default parameters.
Creates a new instance of an Agent with the specified or default parameters.
Value parameters
- actuators
-
A sequence of actuators enabling the agent to perform actions. Defaults to an empty sequence.
- id
-
The unique identifier for the agent.
- orientation
-
The orientation of the agent, measured in degrees.
- position
-
The position of the agent in 2D space.
- sensors
-
A collection of sensors that allow the agent to sense its environment. Defaults to an empty vector.
- shape
-
The shape of the agent, represented as a ShapeType.Circle.
Attributes
- Returns
-
An instance of the Agent class with the specified or default attributes.
def unapply(agent: Agent): Option[(UUID, Point2D, Circle, Orientation, Seq[Actuator[Agent]], Vector[Sensor[Agent, Environment]])]
Givens
Givens
In this article