VisualSim.actor.lib.conversions
Class Excel_to_Composite
- public class Excel_to_Composite
- extends TypedAtomicActor
- This block converts an open Excel Spreadsheet into a sequence of Data Structures. Each row of the Excel file is a data structure and the columns are the fields. The Excel file is specified using the parameters of file name (Excel_Name) and file path (Excel_Path). The Data Structures are placed on the DS_output port. The number of rows and columns for this file are placed on the respective ports after the entire file has been written out. The rows specify the number of Data Structures and the columns indicate the number of Data Structure fields.
open_excel
public TypedIOPort open_excel
- Input port. This port triggers the start of the reading from the Excel file. Each row of the Excel spreadsheet is output as a data structure when a trigger arrives on this output. The type is general.
ds_output
public TypedIOPort ds_output
- Output port, Places a data structure on this port every time a trigger is received on the input port, type string.
row_length_out
public TypedIOPort row_length_out
- Output port, Specifies the number of rows in the spreadsheet. The type is integer.
col_length_out
public TypedIOPort col_length_out
- Output port. This specifies the number of columns in the spreadsheet. This is of type integer.
Excel_Name
public Parameter Excel_Name
- Parameter, file name, type string.
Excel_Path
public Parameter Excel_Path
- Parameter, file path, type string.
Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator