Trigger – step 0031 – February 2010

1 Purpose of SrrTrigger

SrrTrigger distributes an SFTime event to all active scene instances. The time value is set to the current time at the receiver.

SrrTrigger uses a network sensor with streamName/networkSensorId=”Srr-<moduleName>-<objId>” for the communication among scene instances.

2 User Interface of SrrTrigger (uiObj)

SrrTrigger is an external prototype that is available at the directory srr/

<ProtoDeclare name='SrrTrigger'>

<ProtoInterface>

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

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

<field accessType='inputOutput' name='quasiModule' type='SFString'/>

<field accessType='inputOutput' name='objId' type='SFString'/>

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

<field accessType='inputOutput' name='enabled' type='SFBool' value='true'/>

<field accessType='outputOnly' name='initialized' type='SFNode'/>

<field accessType='inputOnly' name='triggerRequest' type='SFTime'/>

<field accessType='outputOnly' name='trigger' type='SFTime'/>

</ProtoInterface>

objId, quasiModule

The user sets the objId and the quasiModule before initialization of the trigger object. The quasiModule needs only be set, when the SRR object is used in a global model (vehicle model). objId is unique within the module.

modParam

is needed for the initialization. This value was delivered by the module coordinator SrrModCoord after the registration and initialization of the module. The user routes this event to SrrTrigger.

enabled

is used to disable the network sensor of the SRR object, when the model is being unloaded.

initialized

fires an SFNode event, after the trigger has been initialized. This is needed by other SRR objects that contain a trigger to coordinate the initialisation procedure.

triggerRequest, trigger

Each scene instance can fire the trigger with an SFTime event at triggerRequest. The trigger will be distributed to all scene instances and create an SFTime event at trigger with the current time.