Repository Class: Difference between revisions

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


===== Task Types =====
===== Task Types =====
*'''[[Repository.GetAllTaskTypes|GetAllTaskTypes]]''' {{APIComment|Retuns an array containing all task types in the repository.}}
*'''[[Repository.GetAllTaskTypes|GetAllTaskTypes]]''' {{APIComment|{{Template:Repository.GetAllTaskTypes.Cmt}}}}


===== Crews =====
===== Crews =====
*'''[[Repository.GetAllCrews|GetAllCrews]]''' {{APIComment|Returns an array containing all crews from the current project.}}
*'''[[Repository.GetAllCrews|GetAllCrews]]''' {{APIComment|{{Template:Repository.GetAllCrews.Cmt}}}}
*'''[[Repository.AddCrew|AddCrew]]''' {{APIComment|Saves the crew in the repository. }}
*'''[[Repository.AddCrew|AddCrew]]''' {{APIComment|{{Template:Repository.AddCrew.Cmt}}}}
*'''[[Repository.UpdateCrew|UpdateCrew]]''' {{APIComment|Updates the Crew in the repository. }}
*'''[[Repository.UpdateCrew|UpdateCrew]]''' {{APIComment|{{Template:Repository.UpdateCrew.Cmt}}}}


===== Pools =====
===== Pools =====
*'''[[Repository.GetAllPools|GetAllPools]]''' {{APIComment|Returns an array containing all spare parts pools from the current project.}}
*'''[[Repository.GetAllPools|GetAllPools]]''' {{APIComment|{{Template:Repository.GetAllPools.Cmt}}}}
*'''[[Repository.AddPool|AddPool]]''' {{APIComment|Saves the spare parts pool in the repository.}}
*'''[[Repository.AddPool|AddPool]]''' {{APIComment|{{Template:Repository.AddPool.Cmt}}}}
*'''[[Repository.UpdatePool|UpdatePool]]''' {{APIComment|Updates the spare parts Pool in the repository.}}
*'''[[Repository.UpdatePool|UpdatePool]]''' {{APIComment|{{Template:Repository.UpdatePool.Cmt}}}}


===== Action =====
===== Action =====
*'''[[Repository.GetAllActions|GetAllActions]]''' {{APIComment|Returns an array containing all actions from the current project.}}
*'''[[Repository.GetAllActions|GetAllActions]]''' {{APIComment|{{Template:Repository.GetAllActions.Cmt}}}}
*'''[[Repository.AddAction|AddAction]]''' {{APIComment|Saves the action in the repository.}}
*'''[[Repository.AddAction|AddAction]]''' {{APIComment|{{Template:Repository.AddAction.Cmt}}}}
*'''[[Repository.UpdateAction|UpdateAction]]''' {{APIComment|Updates the Action in the repository.}}
*'''[[Repository.UpdateAction|UpdateAction]]''' {{APIComment|{{Template:Repository.UpdateAction.Cmt}}}}


===== BlockSim =====
===== BlockSim =====
*'''[[Repository.ImportBlockSimXMLFile|ImportBlockSimXMLFile]]''' {{APIComment|Imports from an XML file to the current project.}}
*'''[[Repository.ImportBlockSimXMLFile|ImportBlockSimXMLFile]]''' {{APIComment|{{Template:Repository.ImportBlockSimXMLFile.Cmt}}}}
*'''[[Repository.SaveRawDataSet|SaveRawDataSet]]''' {{APIComment|Saves the raw data set in the repository.}}
*'''[[Repository.SaveRawDataSet|SaveRawDataSet]]''' {{APIComment|{{Template:Repository.SaveRawDataSet.Cmt}}}}


===== XFRACAS =====
===== XFRACAS =====
*'''[[Repository.GetAllXFRACASEntities|GetAllXFRACASEntities]]''' {{APIComment|Returns an array containing all entity names and and their IDs from the current repository.}}
*'''[[Repository.GetAllXFRACASEntities|GetAllXFRACASEntities]]''' {{APIComment|{{Template:Repository.GetAllXFRACASEntities.Cmt}}}}
*'''[[Repository.ImportXFRACASXML|ImportXFRACASXML]]''' {{APIComment|Uploads an import file byte stream for processing and returns the system ID of the uploaded}}
*'''[[Repository.ImportXFRACASXML|ImportXFRACASXML]]''' {{APIComment|{{Template:Repository.ImportXFRACASXML.Cmt}}}}
*'''[[Repository.ImportXFRACASXMLFile|ImportXFRACASXMLFile]]''' {{APIComment|Uploads an import file for processing and returns the system ID of the uploaded}}
*'''[[Repository.ImportXFRACASXMLFile|ImportXFRACASXMLFile]]''' {{APIComment|{{Template:Repository.ImportXFRACASXMLFile.Cmt}}}}
*'''[[Repository.ImportXFRACASXMLString|ImportXFRACASXMLString]]''' {{APIComment|Uploads an import file string for processing and returns the system ID of the uploaded}}
*'''[[Repository.ImportXFRACASXMLString|ImportXFRACASXMLString]]''' {{APIComment|Uploads an import file string for processing and returns the system ID of the uploaded}}
*'''[[Repository.SerializeXMLObjectToByteArray|SerializeXMLObjectToByteArray]]''' {{APIComment|A helper function to create an array of bytes from a serializable xml object}}
*'''[[Repository.SerializeXMLObjectToByteArray|SerializeXMLObjectToByteArray]]''' {{APIComment|A helper function to create an array of bytes from a serializable xml object}}

Revision as of 21:33, 5 February 2014


Allows Template:Repository Class.Cmt

Constructors

Methods

Connection
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
XFRACAS

Properties