CModel.Parameters: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 7: Line 7:


== Usage Example ==
== Usage Example ==
  {{APIComment|Declare the cModel class using an in-line parameter list.}}
  {{APIComment|'Declare the cModel class using an in-line parameter list.}}
   Dim newModel As New cModel(ModelTypeEnum.Weibull2,  
   Dim newModel As New cModel(ModelTypeEnum.Weibull2,  
     ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
     ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
    
    
  {{APIComment|Get the list of model parameters. See [[ParamValues Class|ParamValues]].}}
  {{APIComment|'Get the list of model parameters. See [[ParamValues Class|ParamValues]].}}
   Dim ModelParameters() As [[ParamValues Class|ParamValues]]
   Dim ModelParameters() As [[ParamValues Class|ParamValues]]
   ModelParameters = newModel.Parameters
   ModelParameters = newModel.Parameters

Revision as of 17:04, 6 May 2014


Syntax

Usage Example

 'Declare the cModel class using an in-line parameter list. 
 Dim newModel As New cModel(ModelTypeEnum.Weibull2, 
   ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
 
 'Get the list of model parameters. See ParamValues. 
 Dim ModelParameters() As ParamValues
 ModelParameters = newModel.Parameters