WAPlots Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:APIClass|WAPlots Class| }}
{{Template:API}}{{Template:APIBreadcrumb}}
{{Template:WAPlots Class.Cmt}}


== Constructors==
*WAPlots {{APIComment|Creates a new WAPlots object.}}


== Methods  ==
Represents a plot based on a [[CModel Class|cModel]], [[WeibullDataSet Class|WeibullDataSet]], or [[ALTADataSet Class|ALTADataSet]] object.
*[[WAPlots.AddDataset|AddDataset( WADataSet )]] {{APIComment|{{Template:WAPlots.AddDataSet.Cmt}}}}
*[[WAPlots.CreatePlot|CreatePlot( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment|{{Template:WAPlots.CreatePlot.Cmt}}}}
*[[WAPlots.CreatePlotVB6|CreatePlotVB6( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment|{{Template:WAPlots.CreatePlotVB6.Cmt}}}}
*[[WAPlots.Clear|Clear]] {{APIComment|{{Template:WAPlots.Clear.Cmt}}}}


== Properties ==
== Constructors==
*ErrorHappened (as ''boolean'') {{APIComment|Whether an error happened during the creation of the plot.}}
{| {{APITable}}
*ErrorMessage (as ''string'') {{APIComment|The error that happened during the creation of the plot. Set only if ErrorHappened is true.}}
|-
| style="width: 180px;"|WAPlots||Creates an instance of the WAPlots class.
|}


== Formatted Usage Example ==
{{APIComment|Create a new Weibull/ALTA Plot instance. See [[WAPlots.CreatePlot|CreatePlot]] for additional details.}}
        Dim WeibullALTAPlot As New WAPlots


{{APIComment|Declare a WeibullDataSet. See [[New WeibullDataSet]] for additional details.}}
== Methods  ==
        Dim WDS As New WeibullDataSet
{| {{APITable}}
|-
| style="width: 180px;"|[[WAPlots.AddDataset|AddDataset]]||{{:WAPlots.AddDataset}}
|-
|[[WAPlots.AddModel|AddModel]]||{{:WAPlots.AddModel}}
|-
|[[WAPlots.Clear|Clear]]||{{:WAPlots.Clear}}
|-
|[[WAPlots.CreatePlot|CreatePlot]]||{{:WAPlots.CreatePlot}}
|-
|[[WAPlots.CreatePlotVB6|CreatePlotVB6]]||{{:WAPlots.CreatePlotVB6}}
|}


{{APIComment|Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]] for additional details.}}
        WDS.AddFailure(1, 1)
        WDS.AddFailure(2, 1)
        WDS.AddFailure(3, 1)


{{APIComment|Add the WeibullDataSet to the WAPlots. See [[New WeibullDataSet|New WeibulDataSet]] for additional details.}}
== Properties ==
        WeibullALTAPlot.AddDataset(WDS)
{| {{APITable}}
 
|-
{{APIComment|Create the WAPlot.  In this example, it will create a Probability plot. See [[WAPlotType Enumeration|WAPlotType]] for additional details.}}
| style="width: 180px;"|ErrorHappened||Indicates whether an error occurred during the creation of the plot. '''Boolean'''. Read-only.
        Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability)
|-
 
|ErrorMessage||Gets the description of the error that occurred during the creation of the plot. Applies only if <code>ErrorHappened</code> is true. '''String'''.
{{APIComment|If there were any issues creating the plot, [[WAPlots.ErrorHappened|ErrorHappened]] would be True, and ErrorString will display the reason.}}
|}
        Dim ErrorString as String
        If WeibullALTAPlot.[[WAPlots.ErrorHappened|ErrorHappened]] Then
            ErrorString = '''WeibullALTAPlot.ErrorMessage'''
        End If

Latest revision as of 15:25, 6 July 2016

APIWiki.png


Member of: SynthesisAPI


Represents a plot based on a cModel, WeibullDataSet, or ALTADataSet object.

Constructors

Name Description
WAPlots Creates an instance of the WAPlots class.


Methods

Name Description
AddDataset Adds a WeibullDataSet or ALTADataSet object to the plot.
AddModel Adds a cModel object to the plot.
Clear Removes the object that was added to the plot, which is required before a new object can be added.
CreatePlot Returns a bitmap object that represents the plot. (.NET only)
CreatePlotVB6 Returns a bitmap object that represents the plot. (VBA/VB6 only.)


Properties

Name Description
ErrorHappened Indicates whether an error occurred during the creation of the plot. Boolean. Read-only.
ErrorMessage Gets the description of the error that occurred during the creation of the plot. Applies only if ErrorHappened is true. String.