SensorReadings

io.github.srs.model.entity.dynamicentity.sensor.Sensor$package.SensorReadings

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension (readings: SensorReadings)

Filters the sensor readings to include only those from light sensors.

Filters the sensor readings to include only those from light sensors.

Attributes

Returns

a vector of sensor readings from light sensors.

def prettyPrint: Vector[String]

Pretty prints the sensor readings in a human-readable format. Each reading is formatted based on the type of sensor

Pretty prints the sensor readings in a human-readable format. Each reading is formatted based on the type of sensor

Attributes

Returns

a vector of strings representing the pretty-printed sensor readings.

Filters the sensor readings to include only those from proximity sensors.

Filters the sensor readings to include only those from proximity sensors.

Attributes

Returns

a vector of sensor readings from proximity sensors.