RawData Class

From ReliaWiki
Revision as of 17:03, 15 May 2014 by Chris Kahn (talk | contribs)
Jump to navigation Jump to search


Properties

Date

  • DateUDF1 (as date) Sets or gets a user-defined date field of this RawData row; equivalent to one of the configurable settings fields in XFRACAS.
  • DateUDF2 (as date) Sets or returns the date user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFMEA, RBI and RCM software. This date field may be pulled from XFRACAS and RCM.
  • DateUDF3 (as date) Sets or returns the date user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFMEA, RBI and RCM software. This date field may be pulled from XFRACAS and RCM.

Failure Data

  • StateFS (as string) Sets or gets whether the data point is a failure ("F") or suspension ("S"), equivalent to the "State F or S" column in a Weibull++ folio with suspensions.
  • StateTime (as double) Sets or gets the failure/suspension time, equivalent to the "Time to F or S" or "Time Failed" columns in a Weibull++ folio.
  • StateTimeRestore (as double) Sets or gets the StateTimeRestore assigned to the resource.
  • LastInspectedTime (as double) Sets or gets the time of last inspection, equivalent to the "Last Inspected" column in a Weibull++ folio with interval censored data.
  • NumberInState (as double) Sets or gets the number of data points in a group, equivalent to the "Number in State" column in a Weibull++ folio with grouped data.
  • FailureMode (as string) Sets or gets the failure mode, equivalent to the Failure Mode field in an XFRACAS incident.

Incident

  • IncidentAction (as string) Sets or gets the IncidentAction the resource belongs to and allows the user to see what action occurred within the incident to a part or resource
  • IncidentEntityDisplayID (as string) Sets or gets the IncidentEntityDisplayID the resource belongs to by showing the incident record prefix along with the incident display ID.
  • IncidentID (as integer) Sets or gets the incident ID of this RawData; equivalent to the Incident ID field in an XFRACAS incident.
  • IncidentOccurrenceDate (as date) Sets or gets the incident occurrence date of this RawData; equivalent to the Occurrence Date field in an XFRACAS incident.
  • IncidentRepairDate (as date) Sets or gets the incident repair date of this RawData; equivalent to the Repair Date field in an XFRACAS incident.
  • IncidentResolution (as string) Sets or gets the incident resolution of this RawData; equivalent to the Incident Resolution field in an XFRACAS incident.

Number

  • NumberUDF1 (as double) Sets or gets the number user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFRACAS.
  • NumberUDF2 (as double) Sets or gets the number user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFRACAS.
  • NumberUDF3 (as double) Sets or gets the number user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFRACAS.

Parent Part

  • ParentPartID (as integer) Sets or gets the part's parent ID of this RawData; equivalent to the Part Part ID field in an XFRACAS system.
  • ParentPartName (as string) Sets or gets the part's parent's name of this RawData; equivalent to the ParentParentName field in an XFRACAS incident.
  • ParentPartNumber (as string) Sets or gets the part's parent part number of this RawData; equivalent to the Parent Part Number field in an XFRACAS system.
  • ParentPartVersion (as string) Sets or gets the part's parent part version of this RawData; equivalent to the Parent Part Version field in an XFRACAS system.

Part

  • RawData.PartHID (as integer) Sets or gets the part hierarchy identification number of this RawData; equivalent to the HID field in XFRACAS system information.
  • PartID (as integer) Sets or gets the part ID the of this RawData; equivalent to the Part ID field in an XFRACAS incident.
  • PartName (as string) Sets or gets the part name of this RawData; equivalent to the Part Name field in an XFRACAS incident.
  • PartNumber (as string) Sets or gets the part number of this RawData; equivalent to the Part Number field in an XFRACAS incident.
  • PartOrder (as integer) Sets or gets the part order of this RawData; equivalent to the Part Order field in an XFRACAS incident.
  • PartSerialHID (as integer) Sets or gets the part hierarchy identification number of this RawData; equivalent to the HID field in XFRACAS system information.
  • PartSerialMfgCd (as string) Sets or gets the serialized part's manufacturing code of this RawData; equivalent to the Manufacturing Code field in an XFRACAS serialized system's Edit Serialized Part dialog box, that can be opened by clicking on the Edit Serialized (default text) button in the Parts section of System.
  • PartSerialNumber (as string) Sets or gets the part serial number of the of this RawData; equivalent to the Part Serial Number field in an XFRACAS incident.
  • PartVersion (as string) Sets or gets the part version of this RawData; equivalent to the Version field in an XFRACAS incident.

String

  • StringUDF1 (as string) Sets or gets the string user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFRACAS.
  • StringUDF2 (as string) Sets or gets the string user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFRACAS.
  • StringUDF3 (as string) Sets or gets the string user defined field (UDF) of this RawData; equivalent to the configurable settings fields in XFRACAS.

Top Level

  • TopLevelCommissionDate (as date) Sets or gets the selected part/resource's top level commission date.
  • TopLevelPartID (as integer) Sets or gets the part's top level part ID the of this RawData; equivalent to the Top Level Part ID field in an XFRACAS system.
  • TopLevelPartName (as string) Sets or returns the top level parent name of this RawData; equivalent to the Top Level Part Name field in an XFRACAS incident.
  • TopLevelPartNumber (as string) Sets or returns the part's top level parent number of this RawData; equivalent to the Top Level Part Number field in an XFRACAS incident
  • TopLevelPartVersion (as string) Sets or returns the part's top level parent version of this RawData; equivalent to the Top Level Part Version field in an XFRACAS incident
  • TopLevelSerialHID (as integer) The part hierarchy serial number (HID) of the top level parent. This is used by RGA to distinguish the system's HID in that the failure occurred and in Weibull to distinguish the potentially different Top Level system HIDs in that the failure state (State FS) occurred. This property is equivalent to the part's parent's serial HID in an XFRACAS system.
  • TopLevelSerialNumber (as string) The part serial number of the top level parent. This is used by RGA to distinguish the system in that the failure occurred and in Weibull to distinguish the potentially different Top Level systems in that the failure state (State FS) occurred. This property is equivalent to the part's parent's serial number in an XFRACAS system.

Miscellaneous

  • AddressLocation (as string) Sets or gets the Address Location of this RawData; equivalent to the Address Location field in an XFRACAS Contact
  • Category (as string) Sets or gets the category of this RawData; equivalent to the Category field in an XFRACAS incident.
  • Chargeable (as integer) Sets or gets the chargeable code value (0,1) for this RawData; equivalent to the Category Chargeable and Category Non-Chargeable Lookup Lists in the XFRACAS Admin configuration List. This is to be used to calculate the failure state (StateFS). XFRACAS categories can also be viewed within an XFRACAS Incident.
  • CompanyOwner (as string) Sets or gets the company owner of this RawData; equivalent to the Company filed in an XFRACAS Contact
  • IsLRU (as integer) Sets or gets the line replaceable unit (LRU) of this RawData.
  • ReportType (as string) Sets or gets the report type the of this RawData; equivalent to the Report Type field in an XFRACAS incident.
  • RootCause (as string) Sets or gets the RootCause assigned to the resource.
  • TimeMetric (as integer) Sets or gets the TimeMetric code value of RawData; equivalent to the Time Metric fields in an XFRACAS incident.

Usage 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.

 'Create a new RawDataSet object. See RawDataSet. 
 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. 
 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()