io.github.srs.model.entity.dynamicentity.agent.termination

Members list

Type members

Classlikes

final case class CollisionDetection() extends TerminationModel[Agent]

Generic termination model for collision detection.

Generic termination model for collision detection.

Episode termination (FAILURE) when the agent collides with an obstacle (proximity sensor < threshold). This is reusable for any task where collision indicates failure: phototaxis, obstacle avoidance, navigation, safe exploration, etc.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

A termination condition that ends an agent’s exploration when a given percentage of the environment has been visited.

A termination condition that ends an agent’s exploration when a given percentage of the environment has been visited.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class CrashedOrReached() extends TerminationModel[Agent]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class EndSimulationTermination() extends TerminationModel[Agent]

Default placeholder termination model. Returns false for every transition — suitable as a neutral fallback.

Default placeholder termination model. Returns false for every transition — suitable as a neutral fallback.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ExplorationTerminationState(visitedCells: Set[(Int, Int)] = ...)

Represents the state for an exploration-based termination condition. Tracks which cells in the environment have been visited by an agent.

Represents the state for an exploration-based termination condition. Tracks which cells in the environment have been visited by an agent.

Value parameters

visitedCells

mutable set of visited cell coordinates represented as (x, y) tuples

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class NeverTerminate() extends TerminationModel[Agent]

Default placeholder termination model. Returns false for every transition — suitable as a neutral fallback.

Default placeholder termination model. Returns false for every transition — suitable as a neutral fallback.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait StatefulTermination[E <: Entity, S] extends TerminationModel[E]

A termination model that maintains internal state to evaluate action outcomes.

A termination model that maintains internal state to evaluate action outcomes.

Type parameters

E

The type of entity for which the termination model is applicable.

S

The type of internal state maintained by the termination model.

Attributes

Supertypes
trait TerminationModel[E]
class Object
trait Matchable
class Any
Known subtypes
enum Termination(val name: String)

An enumeration of available termination models for agents.

An enumeration of available termination models for agents.

This enum represents the different types of termination models that can be applied to agents in the simulation. Each case corresponds to a specific termination evaluation strategy.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait TerminationModel[E]

Defines a termination model for evaluating the outcomes of actions performed by agents in the simulation.

Defines a termination model for evaluating the outcomes of actions performed by agents in the simulation.

Type parameters

E

The type of entity for which the termination model is applicable.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any