Database

Parent Previous Next

VisualSim                                                                                                                                    

Database

 

Function & Argument Type(s)

 

Description

 

   Examples

getColumn

(String database_name, String column_name)

Get an Array of Column entries from Database block, based on Column Name, returned as an ArrayToken.


getColumn("XMT_Connection_State","dest")

getNextResource

(String database_name_, String column_name_)

Get the first resource (Processor, SystemResource and SystemResource_Extend) in the listed column that is not currently processing any transaction.  If none of the resources are free, then the function returns "none".



getNextResource("XMT_Connection_State","dest")

getResourceActivity

(String database_name_, String column_name_)

Used to access information in a Database block. Returns an array of the current queue length of the Resources listed in the named Column. Assumes all resources in the column exist in the model and can be accessed.  Supports Processor,  SystemResource and SystemResource_Extend blocks.  Processor and other hardware blocks use "Architecture_Name.Processor_Name"format.     





getResourceActivity("XMT_Connection_State","dest")

getRows

(String database_name, string row_value,

String column_name)        

Returns an array of data structures for each row that match the value in the named column.  Irrespective of the row_value type, it must be within "".





getRows("XMT_Connection_State","1","dest")

getRows

(String database_name, string row_value,

String column_name, string row_value2, String column_name2)          

Returns an array of data structure for each row that match the value in both the named columns.   Irrespective of the row_value type, it must be within "".




getRows("XMT_Connection_State","Node_1","Dest","3","source")

 

 

 

Created with the Personal Edition of HelpNDoc: Generate Kindle eBooks with ease