Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
trax::WeighSensor Struct Referenceabstract

A sensor that detects wether the weight of a passing railrunner falls into certain limits. More...

#include <C:/Trend/Development/Trax3/Code/trax/rigid/trains/WheelFrameSensors.h>

Inheritance diagram for trax::WeighSensor:

Public Member Functions

Weight

Sets and Gets the weight limits for the sensor.

Parameters
weightMinlower limit for the weight interval.
weightMaxupper limit for the weight interval.
virtual void Weight (Mass weightMin, Mass weightMax)=0
virtual void Weight (const common::Interval< Mass > &weight)=0
virtual const common::Interval< Mass > & Weight () const =0
virtual void WeightMin (Mass weightMin)=0
virtual Mass WeightMin () const =0
virtual void WeightMax (Mass weightMax)=0
virtual Mass WeightMax () const =0
Trigger Condition

Sets the sensor to wether it riggers if the wheelframe's weight is inside the interval (true, the default) or outside (false).

virtual void TriggerInside (bool bTriggerInside)=0
virtual bool TriggerInside () const =0
WeighTrain

Determines wether to weigh the whole train or only the wagon, the wheelframe belongs to.

Parameters
bTraintrue for wighing the train, the default.
virtual void WeighTrain (bool bTrain)=0
virtual bool WeighTrain () const =0
Public Member Functions inherited from trax::Sensor
virtual const char * TypeName () const noexcept=0
virtual void Trigger (const Event &_event)=0
 Triggers this Sensor.
virtual TrackBuilderTrackAttached () const =0
virtual void Attach (TrackBuilder *pTrackBuilder)=0
 Attach the pointer to the track to the sensor.
virtual JackJackOnTrigger ()=0
 Gets a Jack that pulses its Plug if the sensor is triggering.
virtual void RegisterSockets (SocketRegistry &modul)=0
 Registers all the Plugs with the module and supplies the Jacks with plug ids for connecting.
virtual void UnregisterSockets (SocketRegistry &modul)=0
 Removes all references to Plugs and Jacks from the module.
Public Member Functions inherited from trax::Identified< Sensor >
virtual const std::string & Reference (const std::string &name) const=0
 Gets a reference that was set for this object by name.
virtual const std::vector< char const * > & ReferenceNames (const std::string &namePart) const=0
 Searches for all reference names that countain namePart as substring in the name.
virtual IDType ID () const noexcept=0
 Identified (const Identified &)=delete
Identified & operator= (const Identified &)=delete

Static Public Member Functions

static dclspc std::unique_ptr< WeighSensorMake () noexcept
 Makes a WeighSensor object.
Static Public Member Functions inherited from trax::Sensor
static dclspc std::unique_ptr< SensorMake () noexcept
 Makes a Sensor object that triggers on all events.

Detailed Description

A sensor that detects wether the weight of a passing railrunner falls into certain limits.


The documentation for this struct was generated from the following file: