CModel Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
*'''[[CModel.ErrorHappened|ErrorHappened]]''' {{APIComment|Whether or not the last calculation produced an error.}}
*'''[[CModel.ErrorHappened|ErrorHappened]]''' {{APIComment|Whether or not the last calculation produced an error.}}
*'''[[cModel.ConfLevel|ConfLevel]]''' {{APIComment|Returns the confidence level that is currently used for calculations.}}
*'''[[cModel.ConfLevel|ConfLevel]]''' {{APIComment|Returns the confidence level that is currently used for calculations.}}
*'''[[cModel.NumStresses|NumStresses]]''' {{APIComment|Returns the number of stresses in the model.}}


== Methods ==
== Methods ==
*'''[[cModel.SetModel|SetModel]]''' {{APIComment|Sets a new model.}}
*'''[[cModel.SetModel|SetModel]]''' {{APIComment|Sets a new model.}}
*'''[[cModel.SetUseStress|SetUseStress]]''' {{APIComment|Sets use stress value for a particular stress. This value is used in subsequent calculations.}}
*'''[[CModel.Reliability|Reliability]]''' {{APIComment|Calculates the Reliability for a given time.}}
*'''[[CModel.Reliability|Reliability]]''' {{APIComment|Calculates the Reliability for a given time.}}
*'''[[CModel.Unreliability|Unreliability]]''' {{APIComment|Calculates the Unreliability for a given time.}}
*'''[[CModel.Unreliability|Unreliability]]''' {{APIComment|Calculates the Unreliability for a given time.}}

Revision as of 17:31, 1 October 2013



Model allows you to choose or create a model to describe the behavior associated with the URD. This can be a reliability model, a probability of failure model or an event occurrence model.

Constructors

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.

Methods

  • SetModel Sets a new model.
  • SetUseStress Sets use stress value for a particular stress. This value is used in subsequent calculations.
  • Reliability Calculates the Reliability for a given time.
  • Unreliability Calculates the Unreliability for a given time.
  • Time Calculates the time value for a given Reliability.
  • MeanTime Calculates the mean time value for a given Reliability.
  • Pdf Calculates the PDF.
  • FailureRate Returns failure rate given time.
  • Parameters Returns an array containing model parameters and their values.
  • Bounds_Reliability Returns the bounds on the reliability given time.
  • Bounds_Unreliability Returns the bounds on the unreliability given time
  • Bounds_Time Returns the bounds on time given reliability
  • Bounds_MeanTime Returns the bounds on mean time
  • Bounds_FailureRate Returns bounds on failure rate given time.
  • Bounds_Parameters Returns an array containing bounds on all model parameters.
  • SetConfindenceLevel Sets the confidence level for all subsequent confidence bounds calculations.