Agent

io.github.srs.model.entity.dynamicentity.agent.Agent
See theAgent companion class
object Agent

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Agent.type

Members list

Type members

Classlikes

Attributes

Supertypes
trait ActionAlgebra[IO, Agent]
class Object
trait Matchable
class Any
Self type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

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]])]

Extractor method for the Agent .

Extractor method for the Agent .

Value parameters

agent

The Agent instance to be extracted.

Attributes

Returns

An Option containing a tuple with the Agent's attributes.