![]() |
![]() |
[ Bottom of Page | Previous Page | Next Page | Contents | Index ]
The following methods help you to express functions for dynamic model configuration.
Object.GetNumOfInst(ClassName As String) As Long
Object.GetNumProperty(ClassName As String,
idx As Long, PropName As String) As Double
Object.GetStrProperty(ClassName As String, idx As Long, PropName
As String) As String
Object.AssociateParameterToClass
(ParameterName As String, ClassName As String)
Object.AssociateParameterToClassProperty
(ParameterName As String, ClassName As String, Property As String)
Object.CallDMNumProbe(ProbeKey As String, Arguments As String) As Double
Object.CallDMStrProbe(ProbeKey As String, Arguments As String) As String
Visual Basic example: | |
Dim id, numOfInstances As Integer Dim process As String numOfInstances = Svc.GetNumOfInst("TMW_Process") For idx = 0 To numOfInstances - 1 'retrieve the numeric property, ID, for the given instance of TMW_Process id = Svc.GetNumProperty("TMW_Process", idx, "ID") 'retrieve the string property, Process, for the given instance of TMW_Process process = Svc.GetStrProperty("TMW_Process", idx, "Process") Next |
|
JavaScript example: | |
var id, numOfInstances; var process; numOfInstances = Svc.GetNumOfInst("TMW_Process"); for(idx = 0; idx < numOfInstances; idx++){ //retrieve the numeric property, ID, for the given instance of TMW_Process id = Svc.GetNumProperty("TMW_Process", idx, "ID"); //retrieve the string property, Process, for the given instance of TMW_Process id = Svc.GetStrProperty("TMW_Process", idx, "Process"); } |
[ Top of Page | Previous Page | Next Page | Contents | Index ]