Transaction_Trigger

Parent Previous Next

Traffic / TriggeredTraffic
Block Name: TriggeredTraffic

Code File Location: VisualSim/actor/lib/DS_Trigger

Block Overview

o       Every time the input port is triggered TriggeredTraffic generates a transaction or Data Structure.  

o       It is used with custom distributions to create a sequence of transactions. 

Description

TriggeredTraffic generates a Data Structure (DS) every time the input is triggered. A Data Structure is a transaction containing a list of field Names + Values. A template file containing the list of field names and initial values is specified in a .TXT or compiled .JAVA file. The name of this file is specified in the Data_Structure_Name parameter. The trigger can be of any data type (int, long, double, boolean, string). 

To understand the usage, look at the TriggeredTraffic Example in the BDE.

 

 

Parameter

Explanation

Type

Example

Data_Structure_Name

Parameter, 'Data_Structure_Name' contains the following format to list the file name:

1.      File name if located in the $VS/VisualSim/data directory. 

2.      Relative path + file if located under $VS install directory.

3.      Absolute path is required for accessing files located anywhere.  

The .txt or .class extensions must not be added to the file name in this parameter. This is of type string and the file name must be within "".

The default value is "Header" and this outputs a DS containing the 6 Header fields only. Additional fields maybe dynamically created in the dataflow using ExpressionList block.

 

File name if located in the $VS/VisualSim/data directory.

 

 

1. Processor_DS

 

Relative path + file if located under $VS install directory.

 

 

2. "VisualSim.data.Processor_DS"

 

Absolute path is required for accessing files located anywhere.

 

3. "C:.VisualSim.DS.Processor_DS" on Windows and ".VisualSim.DS.Processor_DS" on Unix/Linux

 

 

Port

Explanation

Type

input

The trigger arrives on this input port.  

General

output

This is the output port that the generated Data Structures are sent on.

General

 

Created with the Personal Edition of HelpNDoc: Easy EBook and documentation generator