Repository Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:


== Methods ==
== Methods ==
===== Connection =====
===== Connect/Disconnect to Repository =====
*'''[[Repository.ConnectToRepository|ConnectToRepository]]''' {{APIComment|{{Template:Repository.ConnectToRepository.Cmt}}}}
*'''[[Repository.ConnectToRepository|ConnectToRepository]]''' {{APIComment|{{Template:Repository.ConnectToRepository.Cmt}}}}
*'''[[Repository.ConnectToAccessRepository|ConnectToAccessRepository]]''' {{APIComment|{{Template:Repository.ConnectToAccessRepository.Cmt}}}}
*'''[[Repository.ConnectToAccessRepository|ConnectToAccessRepository]]''' {{APIComment|{{Template:Repository.ConnectToAccessRepository.Cmt}}}}

Revision as of 23:03, 26 February 2014


Template:Repository Class.Cmt

Constructors

Methods

Connect/Disconnect to Repository
Project
  • GetAllProjects Returns an array containing all project names and their IDs from the current repository.
  • GetCurrentProject Returns the name and ID of the current project.
  • SetCurrentProject Opens (sets as current) a project with the specified ID.
Unit
  • GetAllUnits Returns an array containing all units of measurement from the current repository.
Models
  • GetAllModelsInfo Returns an array containing all model names and their IDs from the current project.
  • GetModel Returns the model from the current project with the specified ID. Returns nothing if the model does not exist or is not in the current project.
  • GetAllModels Returns an array containing all models from the current project.
  • AddModel Saves a new model in the repository.
  • UpdateModel Updates the model in the repository.
URDs
  • GetAllURDs Returns an array containing all URDs from the current project.
  • AddURD Saves a new URD in the repository.
  • UpdateURD Updates the URD in the repository.
Variables
Corrective Tasks
Scheduled Tasks
Task Types
  • GetAllTaskTypes Retuns an array containing all task types in the repository.
Crews
  • GetAllCrews Returns an array containing all crews from the current project.
  • AddCrew Saves the crew in the repository.
  • UpdateCrew Updates the crew in the repository.
Pools
  • GetAllPools Returns an array containing all spare parts pools from the current project.
  • AddPool Saves the spare parts pool in the repository.
  • UpdatePool Updates the spare parts pool in the repository.
Action
  • GetAllActions Returns an array containing all actions from the current project.
  • AddAction Saves the action in the repository.
  • UpdateAction Updates the action in the repository.
BlockSim
  • ImportBlockSimXMLFile Imports from an XML file to the current project.
  • ExportBlockSimXMLFile Creates a new BlockSim XML file and exports items from the current project. If the XML file already exists it will be overridden.
Save RawDataSet
XFRACAS

Properties