29#include "trax/Sensor.h"
40 static dclspc std::unique_ptr<VelocitySensor>
Make() noexcept;
53 virtual
void VelocityMin(
Velocity velocityMin ) = 0;
55 virtual
Velocity VelocityMin() const = 0;
57 virtual
void VelocityMax(
Velocity velocityMax ) = 0;
59 virtual
Velocity VelocityMax( ) const = 0;
66 virtual
void TriggerInside(
bool bTriggerInside ) = 0;
68 virtual
bool TriggerInside() const = 0;
77 static dclspc std::unique_ptr<WeighSensor>
Make() noexcept;
84 virtual
void Weight(
Mass weightMin,
Mass weightMax ) = 0;
90 virtual
void WeightMin(
Mass weightMin ) = 0;
92 virtual
Mass WeightMin() const = 0;
94 virtual
void WeightMax(
Mass weightMax ) = 0;
96 virtual
Mass WeightMax( ) const = 0;
103 virtual
void TriggerInside(
bool bTriggerInside ) = 0;
105 virtual
bool TriggerInside() const = 0;
114 virtual
void WeighTrain(
bool bTrain ) = 0;
116 virtual
bool WeighTrain() const = 0;
126 static dclspc std::unique_ptr<IntervalSensor>
Make() noexcept;
133 virtual
void Value(
Real valueMin,
Real valueMax ) = 0;
139 virtual
void ValueMin(
Real valueMin ) = 0;
141 virtual
Real ValueMin() const = 0;
143 virtual
void ValueMax(
Real valueMax ) = 0;
145 virtual
Real ValueMax( ) const = 0;
152 virtual
void TriggerInside(
bool bTriggerInside ) = 0;
154 virtual
bool TriggerInside() const = 0;
Namespace of common utility classes and methods.
Definition Helpers.h:43
Value< Dimension< 1, 0, -1 > > Velocity
Velocity.
Definition DimensionedValues.h:331
Value< Dimension< 0, 1, 0 > > Mass
Mass.
Definition DimensionedValues.h:327
float Real
Underlying floating point type to be used with the dim library.
Definition DimensionedValues.h:190
Namespace of all the trax track libraries classes and methods.
Definition Collection.h:17
An interval describes the area between two numbers. It is understood to contain the near one and exlu...
Definition Interval.h:42
A sensor that detects, wether a wheelframe passing by does this with some value like weight,...
Definition WheelFrameSensors.h:123
static dclspc std::unique_ptr< IntervalSensor > Make() noexcept
Makes a IntervalSensor object.
A Sensor can get attached to a track and be triggerd when a Location runs over it.
Definition Sensor.h:71
A sensor that detects, wether a wheelframe passing by does this within certain velocity limits.
Definition WheelFrameSensors.h:37
static dclspc std::unique_ptr< VelocitySensor > Make() noexcept
Makes a VelocitySensor object.
A sensor that detects wether the weight of a passing railrunner falls into certain limits.
Definition WheelFrameSensors.h:74
static dclspc std::unique_ptr< WeighSensor > Make() noexcept
Makes a WeighSensor object.