CURD Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:cURD Class}}
{{DISPLAYTITLE:cURD Class}}{{Template:API}}{{Template:APIBreadcrumb}}
{{Template:APIClass|Resource Classes|Resource Classes}}  
 
{{Template:CURD Class.Cmt}}
 
<onlyinclude>Represents a universal reliability definition (URD) resource.</onlyinclude>
 
==Constructors==
{| {{APITable}}
|-
| style="width: 180px;"|cURD||Creates an instance of the cURD class.
|-
|[[CURD_Constructors|cURD()]]||{{:CURD_Constructors}}
|}
 
 
==Methods==
{| {{APITable}}
|-
| style="width: 180px;"|[[CURD.GetScheduledTaskIDs_Method|GetScheduledTaskIDs]]||{{:CURD.GetScheduledTaskIDs_Method}}
|-
|[[CURD.SetScheduledTaskIDs_Method|SetScheduledTaskIDs]]||{{:CURD.SetScheduledTaskIDs_Method}}
|}


{{Template:ResourceLinkToRepositoryClass.Cmt}}
== Constructors ==
*cURD {{APIComment|Creates a new URD resource.}}


== Properties  ==
== Properties  ==
*Name (as ''string'') {{APIComment|Gets or sets the URD Name.}}
{| {{APITable}}
*ID (as ''integer'') {{APIComment|Gets the numerical ID of the URD.}}
|-
*ProjectID (as ''integer'') {{APIComment|Gets the numerical ID of the project the URD belongs to.}}
| style="width: 180px;"|CorrectiveTaskID||Gets or sets the numeric ID of the corrective task assigned to the URD. '''Integer'''.
*FailureModelID (as ''integer'') {{APIComment|Gets or sets the numerical ID of the the failure model assigned to the URD.}}
|-
*CorrectiveTaskID (as ''integer'') {{APIComment|Gets or sets the numerical ID of the the corrective task assigned to the URD.}}
|FailureModelID||Gets or sets the numeric ID of the failure model assigned to the URD. '''Integer'''.
*ScheduledTaskIDs (as ''integer()'') {{APIComment|Gets or sets a list of the numerical IDs of the scheduled tasks assigned to the URD.}}
|-
|ID||Gets the numeric ID of the URD. '''Integer'''.
|-
|{{Template:API_TxtIdentifiers}}
|-
|Name||Gets or sets the name of the URD. '''String'''.
|-
|ProjectID||Gets the numeric ID of the project the URD belongs to. '''Integer'''.
|-
|ScheduledTaskIDs()||Gets or sets an array containing the numeric IDs of the scheduled tasks assigned to the URD. (.NET only) '''Long'''.
|}
 
 
 
 


== Usage Example ==
==See Also==
In this usage example, a new URD is created and a failure model is assigned to it. The URD is then added to a project.
*[[Repository.URD.AddURD|Repository.URD.AddURD Method]]
{{APIComment|'Connect to a repository and open the first project. See [[Repository Class|Repository]].}}
*[[Repository.URD.GetAllURDs|Repository.URD.GetAllURDs Method]]
  Dim repo As New Repository
*[[Repository.URD.GetURD|Repository.URD.GetURD Method]]
  repo.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\database.rsr9")
*[[Repository.URD.UpdateURD|Repository.URD.UpdateURD Method]]
  repo.SetCurrentProject(1)
 
{{APIComment|'Create a new URD and give it a name.}}
  Dim urd As New cURD
  urd.Name = "Example URD"
 
{{APIComment|'Assign the failure model with ID &#61; 10 to the new URD.}}
  urd.FailureModelID = 10
 
{{APIComment|'Add the URD to the current project.}}
  repo.AddURD(urd)
 
{{APIComment|'Disconnect from the repository.}}
  repo.DisconnectFromRepository

Latest revision as of 15:17, 3 August 2017

APIWiki.png


Member of: SynthesisAPI


Represents a universal reliability definition (URD) resource.

Constructors

Name Description
cURD Creates an instance of the cURD class.
cURD() A parameterized constructor for the cURD class. (.NET only)


Methods

Name Description
GetScheduledTaskIDs Returns an array containing the numeric IDs of of the scheduled tasks assigned to the URD. Long.
SetScheduledTaskIDs Assigns scheduled tasks to the URD.


Properties

Name Description
CorrectiveTaskID Gets or sets the numeric ID of the corrective task assigned to the URD. Integer.
FailureModelID Gets or sets the numeric ID of the failure model assigned to the URD. Integer.
ID Gets the numeric ID of the URD. Integer.
ItemApplication Gets or sets the item's application. (Synthesis identifier) String
ItemCategoryID Gets or sets the category ID. (Synthesis identifier) Integer
ItemComments Gets or sets the comments. (Synthesis identifier) String
ItemDescription Gets or sets the description. (Synthesis identifier) String
ItemKeywords Gets or sets the keywords. (Synthesis identifier) String
ItemPartNumber Gets or sets the part number. (Synthesis identifier) String
ItemSupplier Gets or sets the supplier name. (Synthesis identifier) String
ItemVersion Gets or sets the version number. (Synthesis identifier) String
Name Gets or sets the name of the URD. String.
ProjectID Gets the numeric ID of the project the URD belongs to. Integer.
ScheduledTaskIDs() Gets or sets an array containing the numeric IDs of the scheduled tasks assigned to the URD. (.NET only) Long.



See Also