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.

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
 * GetModel( Integer )
 * GetAllModels
 * AddModel( cModel )
 * UpdateModel( cModel )
 * DeleteModel(Integer)
 * IsModelUsed(Integer)

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

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

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

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

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

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

 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.