SensorReading

io.github.srs.model.entity.dynamicentity.sensor.SensorReading
final case class SensorReading[S <: Sensor[_, _], A](sensor: S, value: A)

Represents a reading from a sensor. This case class encapsulates the sensor and the value it has sensed.

Type parameters

A

the type of data sensed by the sensor.

S

the type of sensor, which is a subtype of Sensor.

Value parameters

sensor

the sensor that has taken the reading.

value

the value sensed by the sensor.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product