SenseDataFactory class abstract Sensor Data Source
Factory for creating sensor data instances.
Provides static factory methods to produce various SenseData subtype instances for testing, mocking, or custom data injection.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
produceAcceleration(
{DateTime? acquisitionTime, double x = 0.0, double y = 0.0, double z = 0.0, UnitOfMeasurementAcceleration unit = UnitOfMeasurementAcceleration.g}) → Acceleration - Creates a new Acceleration instance from provided parameters.
-
produceAttitude(
{DateTime? acquisitionTime, double roll = 0.0, double pitch = 0.0, double yaw = 0.0, double rollNoise = 0.0, double pitchNoise = 0.0, double yawNoise = 0.0, bool hasRollNoise = false, bool hasPitchNoise = false, bool hasYawNoise = false}) → Attitude - Creates a new Attitude instance from provided parameters.
-
produceBattery(
{DateTime? acquisitionTime, int level = 0, BatteryState state = BatteryState.unknown, BatteryHealth health = BatteryHealth.unknown, bool lowBatteryNoticed = false, PluggedType pluggedType = PluggedType.unplugged, int voltage = 0, int temperature = 0}) → Battery - Creates a new Battery instance from provided parameters.
-
produceCamera(
{DateTime? acquisitionTime, required CameraConfiguration cameraConfiguration, required Uint8List rawCameraBuffer}) → Camera - Creates a new Camera instance from provided parameters.
-
produceCompass(
{DateTime? acquisitionTime, double heading = 0.0, CompassAccuracy accuracy = CompassAccuracy.unknown}) → Compass - Creates a new Compass instance from provided parameters.
-
produceHeartRate(
{DateTime? acquisitionTime, int heartRate = 0}) → HeartRate - Creates a new HeartRate instance from provided parameters.
-
produceMagneticField(
{DateTime? acquisitionTime, double x = 0.0, double y = 0.0, double z = 0.0}) → MagneticField - Creates a new MagneticField instance from provided parameters.
-
produceMountInformation(
{DateTime? acquisitionTime, bool isMountedForCameraUse = false, bool isPortraitMode = false}) → MountInformation - Creates a new MountInformation instance from provided parameters.
-
produceNmeaChunk(
{DateTime? acquisitionTime, required String nmeaChunk}) → NmeaChunk - Creates a new NmeaChunk instance from provided parameters.
-
produceOrientation(
{DateTime? acquisitionTime, OrientationType orientation = OrientationType.unknown, FaceType face = FaceType.unknown}) → Orientation - Creates a new Orientation instance from provided parameters.
-
producePosition(
{DateTime? acquisitionTime, DateTime? satelliteTime, Provider provider = Provider.gps, PositionQuality fixQuality = PositionQuality.high, double latitude = 0.0, double longitude = 0.0, double altitude = 0.0, double speed = 0.0, double speedAccuracy = -1.0, double course = 0.0, double courseAccuracy = -1.0, double accuracyH = -1.0, double accuracyV = -1.0, bool hasCoordinates = true, bool hasAltitude = true, bool hasSpeed = true, bool hasSpeedAccuracy = false, bool hasCourse = true, bool hasCourseAccuracy = false, bool hasHorizontalAccuracy = false, bool hasVerticalAccuracy = false}) → GemPosition - Creates a new GemPosition instance from provided parameters.
-
produceRotationRate(
{DateTime? acquisitionTime, double x = 0.0, double y = 0.0, double z = 0.0}) → RotationRate - Creates a new RotationRate instance from provided parameters.
-
produceTemperature(
{DateTime? acquisitionTime, double temperature = 0.0, TemperatureLevel level = TemperatureLevel.unknown}) → Temperature - Creates a new Temperature instance from provided parameters.