CModel Class: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
Alex Ulanov (talk | contribs) No edit summary  | 
				Kate Racaza (talk | contribs) No edit summary  | 
				||
| Line 1: | Line 1: | ||
{{  | {{Template:API}}{{Template:APIBreadcrumbClass}}  | ||
Represents a model resource.  | |||
== Constructors   | ==Constructors==  | ||
{| {{APITable}}  | |||
|-  | |||
| style="width: 200px;"|cModel||Creates an instance of the cModel class.  | |||
|-  | |||
|[[CModel Constructors|cModel()]]||{{:CModel Constructors}}  | |||
|}  | |||
== Methods   | == Methods==  | ||
{| {{APITable}}  | |||
|-  | |||
| style="width: 200px;"|[[CModel.SetModel|SetModel]]||{{:CModel.SetModel}}   | |||
|-  | |||
|[[CModel.Parameters|Parameters]]||{{:CModel.Parameters}}   | |||
|}  | |||
'''ALTA Models'''    | |||
{| {{APITable}}  | |||
|-  | |||
| style="width: 200px;"|[[CModel.ScaleParameter A|ScaleParameter_A]]||{{:CModel.ScaleParameter_A}}  | |||
|-  | |||
|[[CModel.SetUseStress|SetUseStress]]||{{APIComment|{{Template:CModel.SetUseStress1}}}}    | |||
|}  | |||
'''Standard Calculations'''  | |||
{| {{APITable}}  | |||
|-  | |||
| style="width: 200px;"|[[CModel.Reliability|Reliability]]||{{:CModel.Reliability}}    | |||
|-  | |||
|[[CModel.Unreliability|Unreliability]]||{{:CModel.Unreliability}}    | |||
|-  | |||
|[[CModel.Time|Time]]||{{:CModel.Time}}    | |||
|-  | |||
|[[CModel.MeanTime|MeanTime]]||{{:CModel.MeanTime}}    | |||
|-  | |||
|[[CModel.Pdf|Pdf]]||{{:CModel.Pdf}}}    | |||
|-  | |||
|[[CModel.FailureRate|FailureRate]]||{{:CModel.FailureRate}}  | |||
|}  | |||
'''Confidence Bound Calculations'''   | |||
{| {{APITable}}  | |||
|-  | |||
| style="width: 200px;"|[[CModel.SetConfidenceLevel|SetConfidenceLevel]]||{{:CModel.SetConfidenceLevel}}    | |||
|-  | |||
|[[CModel.Bounds Reliability|Bounds_Reliability]]||{{:CModel.Bounds Reliability}}   | |||
|-  | |||
|[[CModel.Bounds Unreliability|Bounds_Unreliability]]||{{:CModel.Bounds Unreliability}}    | |||
|-  | |||
|[[CModel.Bounds Time|Bounds_Time]]||{{:CModel.Bounds Time}}    | |||
|-  | |||
|[[CModel.Bounds MeanTime|Bounds_MeanTime]]||{{:CModel.Bounds MeanTime}}   | |||
|-  | |||
|[[CModel.Bounds FailureRate|Bounds_FailureRate]]||{{:CModel.Bounds FailureRate}}   | |||
|-  | |||
|[[CModel.Bounds Parameters|Bounds_Parameters]]||{{:CModel.Bounds Parameters}}  | |||
|}  | |||
==Properties==  | |||
{| {{APITable}}  | |||
|-  | |||
| style="width: 200px;"|  | |||
|-  | |||
|Name||''String''. Gets or sets the name of the model.  | |||
|-  | |||
|Type||Gets or sets a value from the [[ModelTypeEnum Enumeration|ModelTypeEnum]] enumeration, which specifies the types of models (e.g., 2-parameter Weibull).  | |||
|-  | |||
|Designation||''String''. Gets a string representing the model type (e.g., 2P-Weibull).  | |||
|-  | |||
|Category||Gets or sets a value from the [[ModelCategoryEnum Enumeration|ModelCategoryEnum]] enumeration, which specifies the model categories (e.g., reliability).  | |||
|-  | |||
|ProjectID||''Integer''. Gets the numerical ID of the project the model belongs to.    | |||
|-  | |||
|UnitID||''Integer''. Gets or sets the model's unit ID number.    | |||
|-  | |||
|ID||''String''. Gets a string representing the numerical ID of the model.  | |||
|-  | |||
|ConfLevel||''Double''. Gets the confidence level that is currently used for calculations.    | |||
|-  | |||
|NumStresses||''Integer''. Applies to ALTA models only. Gets the number of stresses in the model.  | |||
|-  | |||
|ErrorHappened||''Boolean''. Indicates whether the last calculation produced an error.    | |||
|}  | |||
'''Synthesis Identifiers'''  | |||
{| {{APITable}}  | |||
|-  | |||
| style="width: 200px;"|ItemCategoryID||''Integer''. Gets or sets the category ID.    | |||
|-  | |||
|ItemPartNumber||''String''. Gets or sets the part number.    | |||
|-  | |||
|ItemVersion||''String''. Gets or sets the version number.    | |||
|-  | |||
|ItemSupplier||''String''. Gets or sets the supplier name.    | |||
|-  | |||
|ItemApplication||''String''. Gets or sets the application.  | |||
|-  | |||
|ItemDescription||''String''. Gets or sets the description.    | |||
|-  | |||
|ItemComments||''String''. Gets or sets the comments.    | |||
|-  | |||
|ItemKeywords||''String''. Gets or sets the keywords.  | |||
|}  | |||
<!--  | |||
== Usage Example  ==  | == Usage Example  ==  | ||
| Line 83: | Line 135: | ||
  Dim Rel as Double  |   Dim Rel as Double  | ||
  Rel = WDSFittedModel.Reliability(50)  |   Rel = WDSFittedModel.Reliability(50)  | ||
-->  | |||
Revision as of 23:26, 29 July 2015
![]()  | 
Member of:  SynthesisAPI    
Represents a model resource.
Constructors
| Name | Description | 
|---|---|
| cModel | Creates an instance of the cModel class. | 
| cModel() | A parameterized constructor for the cModel class. (.NET only) | 
Methods
| Name | Description | 
|---|---|
| SetModel | Sets the model type, category, name and parameters of an associated cModel object. | 
| Parameters | Returns an array of ParamValues objects that represent the parameter name and value pairs of an associated cModel object. | 
ALTA Models 
| Name | Description | 
|---|---|
| ScaleParameter_A | For ALTA models, returns the scale parameter at the use stress level. Double. Returns 0 if the model is not an ALTA model. | 
| SetUseStress | Updates the use stress value for the stress with the specified index. | 
Standard Calculations
| Name | Description | 
|---|---|
| Reliability | Returns the reliability at the specified time. Double | 
| Unreliability | Returns the probability of failure at the specified time. Double | 
| Time | Returns the time at which a specified reliability will be achieved. Double | 
| MeanTime | Returns the mean time to failure. Double | 
| Returns the y-value of the pdf at the specified x-value (time). Double} | |
| FailureRate | Returns the failure rate at the specified time. Double | 
Confidence Bound Calculations 
| Name | Description | 
|---|---|
| SetConfidenceLevel | Sets the confidence level to use in confidence bounds calculations for published models. Returns a Boolean value; when true, indicates that a confidence level has been set. | 
| Bounds_Reliability | Calculates the bounds on the reliability at the specified time for an associated cModel object. Returns a BoundsValues object that represents the confidence bounds. | 
| Bounds_Unreliability | Calculates the bounds on the probability of failure at a specified time for an associated cModel object. Returns a BoundsValues object that represents the confidence bounds. | 
| Bounds_Time | Calculates the bounds on the time at which a specified reliability will be achieved for an associated cModel object. Returns a BoundsValues object that represents the confidence bounds. | 
| Bounds_MeanTime | Calculates the bounds on the mean time to failure for an associated cModel object. Returns a BoundsValues object that represents the confidence bounds. | 
| Bounds_FailureRate | Calculates the bounds on the failure rate at a specified time for an associated cModel object. Returns a BoundsValues object that represents the confidence bounds. | 
| Bounds_Parameters | Calculates the confidence bounds on the parameter estimates of an associated cModel object. Returns a ParamBoundsValues object that represents the confidence bounds on the parameter estimates. | 
Properties
| Name | Description | 
|---|---|
| Name | String. Gets or sets the name of the model. | 
| Type | Gets or sets a value from the ModelTypeEnum enumeration, which specifies the types of models (e.g., 2-parameter Weibull). | 
| Designation | String. Gets a string representing the model type (e.g., 2P-Weibull). | 
| Category | Gets or sets a value from the ModelCategoryEnum enumeration, which specifies the model categories (e.g., reliability). | 
| ProjectID | Integer. Gets the numerical ID of the project the model belongs to. | 
| UnitID | Integer. Gets or sets the model's unit ID number. | 
| ID | String. Gets a string representing the numerical ID of the model. | 
| ConfLevel | Double. Gets the confidence level that is currently used for calculations. | 
| NumStresses | Integer. Applies to ALTA models only. Gets the number of stresses in the model. | 
| ErrorHappened | Boolean. Indicates whether the last calculation produced an error. | 
Synthesis Identifiers
| Name | Description | 
|---|---|
| ItemCategoryID | Integer. Gets or sets the category ID. | 
| ItemPartNumber | String. Gets or sets the part number. | 
| ItemVersion | String. Gets or sets the version number. | 
| ItemSupplier | String. Gets or sets the supplier name. | 
| ItemApplication | String. Gets or sets the application. | 
| ItemDescription | String. Gets or sets the description. | 
| ItemComments | String. Gets or sets the comments. | 
| ItemKeywords | String. Gets or sets the keywords. | 
