io.github.srs.model.entity.dynamicentity.sensor
Members list
Packages
Type members
Classlikes
A light sensor that senses the light intensity in the environment.
A light sensor that senses the light intensity in the environment.
Type parameters
- Entity
-
the type of dynamic entity that the sensor can act upon.
- Env
-
the type of environment in which the sensor operates.
Value parameters
- offset
-
the offset orientation of the sensor relative to the entity's orientation.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A proximity sensor that can sense the distance to other entities in the environment. It calculates the distance to the nearest entity within its range and returns a normalized value. The value is normalized to a range between 0.0 (closest) and 1.0 (farthest).
A proximity sensor that can sense the distance to other entities in the environment. It calculates the distance to the nearest entity within its range and returns a normalized value. The value is normalized to a range between 0.0 (closest) and 1.0 (farthest).
Type parameters
- Entity
-
the type of dynamic entity that the sensor can act upon.
- Env
-
the type of environment in which the sensor operates.
Value parameters
- offset
-
the offset orientation of the sensor relative to the entity's orientation.
- range
-
the range of the sensor, which defines how far it can sense.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a sensor that can sense the environment for a dynamic entity.
Represents a sensor that can sense the environment for a dynamic entity.
Type parameters
- Entity
-
the type of dynamic entity that the sensor can act upon.
- Env
-
the type of environment in which the sensor operates.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Represents a reading from a sensor. This case class encapsulates the sensor and the value it has sensed.
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
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SensorReadings.type
Types
A collection of light sensor readings. This type is a specialized version of SensorReadings, specifically for light sensors. It is a vector of SensorReading instances where the sensor is a LightSensor and the data is of type Double
.
A collection of light sensor readings. This type is a specialized version of SensorReadings, specifically for light sensors. It is a vector of SensorReading instances where the sensor is a LightSensor and the data is of type Double
.
Attributes
A collection of proximity sensor readings. This type is a specialized version of SensorReadings, specifically for proximity sensors. It is a vector of SensorReading instances where the sensor is a ProximitySensor and the data is of type Double
.
A collection of proximity sensor readings. This type is a specialized version of SensorReadings, specifically for proximity sensors. It is a vector of SensorReading instances where the sensor is a ProximitySensor and the data is of type Double
.
Attributes
Represents the range of a sensor.
Represents the range of a sensor.
Attributes
A collection of sensor readings. This type is used to represent multiple sensor readings from a dynamic entity. It is a vector of SensorReading instances, allowing for efficient access and manipulation of sensor data.
A collection of sensor readings. This type is used to represent multiple sensor readings from a dynamic entity. It is a vector of SensorReading instances, allowing for efficient access and manipulation of sensor data.