Vector Block Models


Generic_Batcher

 

File: general_blocks/All.sim

Description

Generic_Batcher creates a batch (a vector; specifically, a Generic Vector or gvec) of Envelopes from the incoming Envelopes. The batch is sent out when the vector has been filled or when a timeout occurs.

The Generic_Batcher and Generic_UnBatcher are blocks intended to dramatically simplify assembly and disassembly of gvecs, eliminating the synchronization and pointer issues often encountered when trying to implement batching and unbatching using the Access_GVector, Setup_GVElem, GVCreate and GVLen blocks.

Ports
Input Ports
Output Ports
Parameters
     Vector_Size    Data Type: INTEGER                         
                     Specifies the maximum number of Envelopes 
                       assembled into a batch                  
     Timeout_Value  Data Type: REAL                            
                     Specifies the maximum time allowed for    
                       assembling a batch. Empty batches are   
                       not sent out (they are skipped).        
     Start_Time     Data Type: REAL                            
                     Specifies the time to start batching. If  
                       a negative time is specified (i.e. -1.0)
                       batching is triggered by the first      
                       message received.                       

Generic_UnBatcher

 

File: general_blocks/All.sim

Description

Generic_UnBatcher extracts Envelopes from the received batch (GVec).

The Generic_Batcher and Generic_UnBatcher are blocks intended to dramatically simplify assembly and disassembly of gvecs, eliminating the synchronization and pointer issues often encountered when trying to implement batching and unbatching using the Access_GVector, Setup_GVElem, GVCreate and GVLen blocks.

Ports
Input Ports
Output Ports
Parameters   ( none )


Access_GVector   

File: general_blocks/.sim

Description

The model receives a GVec at the in port, and the index
of the data structure to be accessed at the indx port.
The accessed data structure is sent out of the elem port,
The incr and decr inputs increment and decrement the and the GVec is sent out the out port.
Ports
Input Ports
Output Ports

Setup_GVElem   

File: general_blocks/.sim

Description

The model inserts a data structure into a general vector
(GVec) of data structures. The indx input specifies into
which position in the vector the data structure is to be
inserted. The incoming data structure must be of the
correct kind (8001) and must be correctly formed.
Ports
Input Ports
Output Ports

GVCreate  

File: general_blocks/.sim

Description

This model generates a GVec (general vector). The vector
length is received at the indx port, and the GVec is sent
out the out port.
Ports
Input Ports
Output Ports

GVLen  

File: general_blocks/.sim

Description

This model receives a GVec (general vector) at its in
port. It extracts the length of the GVec and sends the
value out of the len port. The GVec is sent out the out port.
Ports
Input Ports
Output Ports

Access_Vector

File: general_blocks/.sim

Description

The model receives a Vec at the in port, and the index of the data structure to be accessed at the indx port. The accessed data structure is sent out of the elem port, The incr and decr inputs increment and decrement the and the Vec is sent out the out port.
Ports
Input Ports
Output Ports

Setup_VElem

File: general_blocks/.sim

Description

The model inserts a data structure into a vector of data structures. The indx input specifies into which position in the vector the data structure is to be inserted. The incoming data structure must be of the correct kind (7001) and must be correctly formed.

Ports
Input Ports
Output Ports

VCreate  

File: general_blocks/.sim

Description

This model generates an empty Vec (vector). The vector length is received at the indx port, and the Vec is sent out the out port.

Ports
Input Ports
Output Ports

VLen  

File: general_blocks/.sim

Description

This model receives a Vec (vector) at its in
port. It extracts the length of the Vec and sends the
value out of the len port. The Vec is sent out the out port.

Ports
Input Ports
Output Ports