Simple Cab Type A – step 0031 – February 2010

1 Purpose of SrrCabA

SrrTrains Cabs are a means to organize controls for the user interfaces of vehicles.

The simple cab type A provides the ability to globally maintain an integer value for the regulating notch and a boolean value for the direction, in which the drive will drive the vehicle.

The output parameters of the cab must be linked with the input parameters of the according drive (in future possibly via the train bus).

2 User Interface of SrrCabA (uiObj)

SrrCabA is an external prototype that is available at the directory srr/.

<ProtoDeclare name="SrrCabA">

<ProtoInterface>

<field accessType='inputOutput' name='objType' type='SFString' value='SrrCabA'/>

<field accessType='inputOutput' name='version' type='SFFloat' value='0.0031'/>

<field accessType='inputOutput' name='parentVehicle' type='SFNode'/>

<field accessType='inputOutput' name='regulatorControl' type='SFNode'/>

<field accessType='inputOutput' name='directionControl' type='SFNode'/>

<field accessType='inputOnly' name='basicInitialization' type='SFInt32'/>

<field accessType='inputOutput' name='basicallyInitialized' type='SFNode'/>

<field accessType='inputOutput' name='regulatingNotch' type='SFInt32'/>

<field accessType='inputOutput' name='direction' type='SFBool'/>

</ProtoInterface>

The fields parentVehicle, basicInitialization and basicallyInitialized are used in the SRR framework and in other SRR objects internally and need not be described here.

You can provide an integer control object in the regulatorControl field.

You can provide a boolean control in the directionControl field.

The cab will output the values in the fields regulatingNotch and direction, which will be routed to the drives (or to the train bus) by the SrrVehicle object.