Repository Class

Represents a Synthesis repository. Use the methods in the Repository group to establish a connection to a Synthesis repository. Once you have a connection, you can use the rest of the methods and properties in this class to read and write data to the repository.

Repository

 * ConnectToRepository
 * ConnectToAccessRepository
 * ConnectToSQLRepository
 * ConnectToOracleRepository
 * DisconnectFromRepository

Project

 * GetAllProjects
 * GetCurrentProject
 * SetCurrentProject

Unit

 * GetAllUnits

Model

 * GetAllModelsInfo
 * GetAllModels
 * AddModel
 * UpdateModel
 * GetModel *
 * IsModelUsed *
 * DeleteModel *

URD

 * GetAllURDs
 * AddURD
 * UpdateURD
 * GetURD *

Variable

 * GetAllVariables
 * AddVariable
 * UpdateVariable
 * GetVariable *

Task

 * GetAllCorrectiveTasks
 * AddCorrectiveTask
 * UpdateCorrectiveTask
 * GetCorrectiveTask *
 * GetAllScheduledTasks
 * AddScheduledTask
 * UpdateScheduledTask
 * GetScheduledTask *
 * GetAllTaskTypes

Crew

 * GetAllCrews
 * AddCrew
 * UpdateCrew
 * GetCrew *

Pool

 * GetAllPools
 * AddPool
 * UpdatePool
 * GetPool *

Action

 * GetAllActionsDictionary *
 * GetAllActions
 * AddAction
 * UpdateAction
 * GetAction *

Control

 * GetAllXfmeaControlsDictionary *
 * GetAllXfmeaControls *
 * AddXfmeaControl *
 * UpdateXfmeaControl *
 * GetXfmeaControl *

BlockSim

 * ImportBlockSimXMLFile
 * ExportBlockSimXMLFile

Synthesis Data Warehouse

 * SaveRawDataSet

XFRACAS

 * GetAllXFRACASEntities
 * ImportXFRACASXML
 * ImportXFRACASXMLFile
 * ImportXFRACASXMLString
 * SerializeXMLObjectToByteArray
 * ProcessXfracasImports
 * WriteMessageToDiagnosticsLog
 * WriteExceptionToDiagnosticsLog
 * XFRACASCommandTimeout *
 * AddSystemMetric1 *
 * AddSystemMetric2 *
 * AddSystemMetric3 *

Xfmea

 * GetAllItemsInSystemHierarchyDictionary *
 * GetAllItemsInSystemHierarchy *
 * AddItemToSystemHierarchy *
 * UpdateItemInSystemHierarchy *


 * GetAllXfmeaFunctionsDictionary *
 * GetAllXfmeaFunctions *
 * GetXfmeaFunction *
 * AddXfmeaFunction *
 * UpdateXfmeaFunction *


 * GetAllXfmeaFailuresDictionary *
 * GetAllXfmeaFailures *
 * GetXfmeaFailure *
 * AddXfmeaFailure *
 * UpdateXfmeaFailure *


 * GetAllXfmeaEffectsDictionary *
 * GetAllXfmeaEffects *
 * GetXfmeaEffect *
 * AddXfmeaEffect *
 * UpdateXfmeaEffect *


 * GetAllXfmeaCausesDictionary *
 * GetAllXfmeaCauses *
 * GetXfmeaCause *
 * AddXfmeaCause *
 * UpdateXfmeaCause *

Properties

 * EnforceRENOCompliance

Version Information
Methods and properties marked with an asterisk (*) require Synthesis API Version 10 or greater.

Important: If you have upgraded from Version 9 and have existing code written using Synthesis API version 9, you should modify your code. In Version 9, all methods existed in the Repository class, in Version 10 they were moved into sections, according to the object type they apply to. For instance, Repository.GetAllModels is now Repository.Model.GetAllModels; Repository.ImportBlockSimXMLFile is now Repository.BlockSim.ImportBlockSimXMLFile etc. The Version 9 methods still exist so your code is not broken, but they are deprecated and may be removed in future versions of the API.

Example
In this example, the API is used to connect to a repository, open the first available project in that repository, and then get the first available model in the project. It then calculates the reliability at a specified time, based on that model.