Devices¶
- class fdsreader.devc.Device(device_id: str, quantity: Quantity, position: Tuple[float, float, float], orientation: Tuple[float, float, float])[source]
Represents a single Device.
- Variables:
id – The id the device was given.
quantity – The
Quantitythe device measured.position – Position of the device in the simulation space.
orientation – The direction the device was facing.
data – All data the device measured.
- property activation_times: list[tuple[float, bool]]
List of
(time, state)tuples recording when this device activated or deactivated.Each entry is a
(float, bool)tuple where time is the simulation time in seconds and state isTruefor activation andFalsefor deactivation. The list is sorted by time.
- add_activation_time(time: float, state: bool) None[source]
Record an activation event for this device.
- Args:
time: Simulation time of the event in seconds. state:
Trueif the device activated,Falseif it deactivated.
- clear_cache()[source]
Remove all data from the internal cache that has been loaded so far to free memory.
- property data
- property quantity_name
Alias for
Device.quantity.name.
- property unit
Alias for
Device.quantity.unit.
- property xyz
Alias for
Device.position.