io.github.srs.model.entity.dynamicentity.behavior

Members list

Type members

Classlikes

final case class BehaviorContext(sensorReadings: SensorReadings, rng: RNG)

Input context for behavior evaluation. Designed to be extended as new behaviors need more information.

Input context for behavior evaluation. Designed to be extended as new behaviors need more information.

Attributes

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

Core types for the Behavior DSL

Core types for the Behavior DSL

  • Behavior — total, pure decision (I => A via Kleisli[Id, I, A])
  • PartialBehavior — partial decision (I => Option[A] via Kleisli[Option, I, A])
  • Condition — boolean predicate on the input

Partial behaviors compose left-biased (first Some wins) and are finalized into total behaviors via the DSL’s orElse.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
enum Policy(val name: String)

A Policy selects the next Action purely, based only on the provided BehaviorContext and returns the next RNG alongside the action.

A Policy selects the next Action purely, based only on the provided BehaviorContext and returns the next RNG alongside the action.

Attributes

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