Event

io.github.srs.controller.protocol.Event
enum Event

Protocol defining the events that can occur in the simulation.

Attributes

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

Members list

Type members

Enum entries

case Pause extends Event

Event indicating the simulation is paused.

Event indicating the simulation is paused.

Attributes

final case class Random(rng: RNG)

Event representing a random event in the simulation.

Event representing a random event in the simulation.

Value parameters

rng

the random number generator RNG used for the event.

Attributes

case Resume extends Event

Event indicating the simulation has resumed.

Event indicating the simulation has resumed.

Attributes

final case class RobotActionProposals(proposals: List[RobotProposal])

Event representing a proposal for robot actions.

Event representing a proposal for robot actions.

Value parameters

proposals

the list of RobotProposal to be processed.

Attributes

case Stop extends Event

Event indicating the simulation has stopped.

Event indicating the simulation has stopped.

Attributes

final case class Tick(delta: FiniteDuration)

Event representing a tick in the simulation with a specified time delta.

Event representing a tick in the simulation with a specified time delta.

Value parameters

delta

the time duration for the tick.

Attributes

final case class TickSpeed(speed: SimulationSpeed)

Event representing a change in the simulation speed.

Event representing a change in the simulation speed.

Value parameters

speed

the new SimulationSpeed.

Attributes