Repository Class

This is a class that allows you to access a Synthesis repository. The class has following sections containing methods and properties that allow you to read, create and edit various objects in the repository. See Example at the bottom of this page. Also see the important note for version 9 users.

Repository

 * New
 * ConnectToRepository( String )
 * ConnectToAccessRepository( String )
 * ConnectToSQLRepository( String, String, [Boolean], [String], [String], [String] )
 * ConnectToOracleRepository( Integer ,String, String, String, String )
 * DisconnectFromRepository
 * EnforceRENOCompliance (as boolean)

 Project 
 * GetAllProjects
 * GetCurrentProject
 * SetCurrentProject( Integer )

 Unit 
 * GetAllUnits

 Model 
 * GetAllModelsInfo
 * GetAllModels
 * AddModel( cModel )
 * UpdateModel( cModel )
 * GetModel( Integer ) *
 * IsModelUsed(Integer) *
 * DeleteModel(Integer) *

 URD 
 * GetAllURDs
 * AddURD( cURD )
 * UpdateURD( cURD )
 * GetURD (Integer) *

 Variable 
 * GetAllVariables
 * AddVariable( cVariable )
 * UpdateVariable( cVariable )
 * GetVariable(Integer) *

 Task 
 * GetAllCorrectiveTasks
 * AddCorrectiveTask( cCorrectiveTask )
 * UpdateCorrectiveTask( cCorrectiveTask )
 * GetCorrectiveTask(Integer) *
 * GetAllScheduledTasks
 * AddScheduledTask(cScheduledTask)
 * UpdateCorrectiveTask(cScheduledTask)
 * GetScheduledTask(Integer) *
 * GetAllTaskTypes

 Crew 
 * GetAllCrews
 * AddCrew(cCrew)
 * UpdateCrew( cCrew )
 * GetCrew(Integer) *

 Pool 
 * GetAllPools
 * AddPool(cPool)
 * UpdatePool(cPool)
 * GetPool (cPool) *

 Action 
 * GetAllActions
 * AddAction(cAction)
 * UpdateAction(cAction)
 * GetAction(Integer) *

 Control 
 * GetAllXfmeaControlsDictionary *
 * AddAction(cAction)
 * UpdateAction(cAction)
 * GetAction(Integer) *

 BlockSim 
 * ImportBlockSimXMLFile(String)
 * ExportBlockSimXMLFile(String)

DataWarehouse
 * SaveRawDataSet( RawDataSet )

 XFRACAS 
 * GetAllXFRACASEntities
 * ImportXFRACASXML( Integer, XFRACASImportType, Byte, String, String )
 * ImportXFRACASXMLFile( Integer, XFRACASImportType, String, String )
 * ImportXFRACASXMLString(( Integer, XFRACASImportType, String, String, String )
 * SerializeXMLObjectToByteArray( Byte, Object )
 * ProcessXfracasImports
 * WriteToDiagnosticsLog(string, XFRACASDiagnosticEntryType)
 * WriteToDiagnosticsLog(System.Exception, XFRACASDiagnosticEntryType, String)
 * XFRACASCommandTimeout(Integer) *
 * AddSystemMetric1(Integer, Double, Date) *
 * AddSystemMetric2(Integer, Double, Double, Date) *
 * AddSystemMetric3(Integer, Double, Double, Double, Date) *

 Xfmea 

Usage Example
In this usage example, the API is used to connect to a repository, retrieve one of the models in it and then calculate the reliability at a specified time, based on that model.