Agent

io.github.srs.model.entity.dynamicentity.agent.Agent
See theAgent companion object
final case class Agent(id: UUID = ..., position: Point2D = ..., shape: Circle = ..., orientation: Orientation = ..., actuators: Seq[Actuator[Agent]] = ..., sensors: Vector[Sensor[Agent, Environment]] = ..., reward: Reward = ..., termination: Termination = ..., truncation: Truncation = ..., lastAction: Option[Action[IO]] = ..., visitedCountPositions: Map[(Int, Int), Double] = ..., aliveSteps: Int = ..., didCollide: Boolean = ...) extends DynamicEntity

An [[Agent]] is a controllable dynamic entity with no internal policy. Its actions originate from an external controller.

Value parameters

actuators

The sequence of actuators that enables the agent to interact with the environment.

id

The unique identifier for this agent. Defaults to a randomly generated UUID.

orientation

The orientation of the agent within the 2D space.

position

The position of the agent in 2D space, represented as a Point2D.

sensors

The set of sensors that allows the agent to perceive its surroundings in the environment.

shape

The shape of the agent, represented as a ShapeType.Circle with a default radius.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Entity
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product