RawDataSet Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:




<onlyinclude>Represents a Synthesis Data Warehouse (SDW) data collection.</onlyinclude> Applies to Weibull++, ALTA and RGA only. You can view a list of available data collections in a repository by choosing '''Home > Synthesis Synthesis Data Warehouse'''. (In Version 9, this is '''Project > Synthesis  > XFRACAS to RDW'''.)
<onlyinclude>Represents a Synthesis Data Warehouse (SDW) data collection, which contains data points (represented by [[RawData Class|RawData]] objects).</onlyinclude>  
 
Applies to Weibull++, ALTA and RGA only. You can view a list of all available data collections in a repository by choosing '''Home > Synthesis Synthesis Data Warehouse'''. (In Version 9, this is '''Project > Synthesis  > XFRACAS to RDW'''.)


== Methods ==
== Methods ==
*[[RawDataSet.AddDataRow|AddDataRow( RawData )]] {{APIComment|Adds the specified [[RawData Class|RawData]] object to RawDataSet.}}
{| {{APITable|24%}}
*Clear                                           {{APIComment|Clears all [[RawData Class|RawData]] objects from RawDataSet.}}
|-
|[[RawDataSet.AddDataRow|AddDataRow]]||{{:RawDataSet.AddDataRow}}
|-
|Clear||Clears all data points saved in the RawDataSet object.
|}
 


== Properties ==
== Properties ==
*ExtractedName     (as ''string'') {{APIComment|Gets or sets the name of the data set.}}
{| {{APITable|16%}}
*ExtractedDate     (as ''date'')  {{APIComment|Gets or sets the date when the data set was extracted.}}
|-
*ExtractedBy       (as ''string'') {{APIComment|Gets or sets the name of the person who extracted the data set.}}
|ExtractedName||''String''. The name of the SDW data collection.}}
*ExtractedType     (as ''[[AnalyticalDataSetType Enumeration|AnalyticalDataSetType]]'') {{APIComment|Gets or sets whether the data set is for use with Weibull++ or RGA.}}
|-
|ExtractedDate||''Date''. The date when the data set was extracted.}}
|-
|ExtractedBy||''String''. The name of the person who extracted the data set.}}
|-
|ExtractedType||Gets or sets one of the constants of the [[AnalyticalDataSetType Enumeration|AnalyticalDataSetType]] enumeration, which specifies whether the data set is for use with Weibull++ or RGA.
|}
 


== Usage Example ==
== Example ==
This usage example demonstrates how to create a simple raw data set and add it to a repository's Reliability Data Warehouse (RDW). Full application examples are available at [[Synthesis_API_Reference#Application_Examples]].
This usage example demonstrates how to create a simple raw data set and add it to a repository's Synthesis Data Warehouse (SDW).


  {{APIComment|'Create a new RawDataSet object.}}
  {{APIComment|'Create a new RawDataSet object.}}

Revision as of 23:27, 23 July 2015

APIWiki.png


Member of: SynthesisAPI9


Represents a Synthesis Data Warehouse (SDW) data collection, which contains data points (represented by RawData objects).

Applies to Weibull++, ALTA and RGA only. You can view a list of all available data collections in a repository by choosing Home > Synthesis Synthesis Data Warehouse. (In Version 9, this is Project > Synthesis > XFRACAS to RDW.)

Methods

Name Description
AddDataRow Adds a new RawData object, which represents a data point, to the SDW data collection.
Clear Clears all data points saved in the RawDataSet object.


Properties

Name Description
ExtractedName String. The name of the SDW data collection.}}
ExtractedDate Date. The date when the data set was extracted.}}
ExtractedBy String. The name of the person who extracted the data set.}}
ExtractedType Gets or sets one of the constants of the AnalyticalDataSetType enumeration, which specifies whether the data set is for use with Weibull++ or RGA.


Example

This usage example demonstrates how to create a simple raw data set and add it to a repository's Synthesis Data Warehouse (SDW).

 'Create a new RawDataSet object. 
 Dim rawDS As New RawDataSet

 'Give rawDS a name and specify that it is for use with Weibull++. 
 rawDS.ExtractedName = "Example for RDW"
 rawDS.ExtractedType = RawDataSetType.Weibull

 'Create two new RawData objects, each containing a failure time. See RawData. 
 Dim row1 As New RawData
 row1.StateFS = "F"
 row1.StateTime = "100"

 Dim row2 As New RawData
 row2.StateFS = "F"
 row2.StateTime = "120"

 'Add the two failure times as two rows in rawDS. 
 rawDS.AddDataRow(row1)
 rawDS.AddDataRow(row2)

 'Connect to a Synthesis repository. See Repository. 
 Dim MyRepository As New Repository
 MyRepository.ConnectToRepository("C:\Users\ckahn\Documents\ReliaSoft\Files\APITesting.rsr9")
  
 'Add rawDS to the Raw Data Warehouse in the repository. 
 MyRepository.SaveRawDataSet(rawDS)

 'Disconnect from repository. 
 MyRepository.DisconnectFromRepository()