CModel Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 6: Line 6:
== Constructors ==
== Constructors ==


*[[cModel_Constructors|cModel()]] {{APIComment|Creates an empty model. SetModel method must be called to set the model name, type, category and parameters.}}
*[[cModel_Constructors|cModel]] {{APIComment|Creates an empty model. SetModel method must be called to set the model name, type, category and parameters.}}
*[[cModel_Constructors|cModel(ModelTypeEnum, ModelCategoryEnum, String, Double())]] {{APIComment|Creates a new model using the provided model type, category, name and parameters.}}
*[[cModel_Constructors|cModel(ModelTypeEnum, ModelCategoryEnum, String, Double())]] {{APIComment|Creates a new model using the provided model type, category, name and parameters.}}



Revision as of 23:18, 20 February 2014



The model class allows you to represent probabilities, durations or costs, either fixed or time-dependent. It also contains methods for accessing the calculations performed with the Quick Calculation Pad (QCP).

Constructors

Methods

Set/Return Model Properties

Set the Use Stress for ALTA Calculations

Standard Calculations

Confidence Bound Calculations

Properties

  • Name Sets or returns the name of the model (the one used in the repository)
  • ID Returns the ID of the model (the one used in the repository).
  • ProjectID Returns the ID of the project the resource belongs to.
  • Type Returns the type of the model.
  • Category Returns the category of the model.
  • Designation Returns the designation of the model (for example Weibull-2).
  • ErrorHappened Whether or not the last calculation produced an error.
  • ConfLevel Returns the confidence level that is currently used for calculations.
  • NumStresses Returns the number of stresses in the model.

Formatted Usage Example

Declare the WeibullDataSet. See New WeibullDataSet for additional details.

       Dim WDS as New WeibullDataSet

Add values to the raw data. See WeibullDataSet.AddFailure for additional details.

       WDS.AddFailure(1, 1)
       WDS.AddFailure(2, 1)
       WDS.AddFailure(3, 1)

Calculate the Fitted Model using the raw data.See WeibullDataSet.CalculateBestFit for additional details.

       WDS.CalculateBestFit

Use the Fitted Model using the raw data. See WeibullDataSet.FittedModel for additional details.

       Dim WDSFittedModel as cModel
       WDSFittedModel = WDS.FittedModel