BoundsValues Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
*'''[[BoundsValues.Upper|Upper]]''' {{APIComment|Returns the Upper value}}
*'''[[BoundsValues.Upper|Upper]]''' {{APIComment|Returns the Upper value}}
*'''[[BoundsValues.Lower|Lower]]''' {{APIComment|Returns the Lower value}}
*'''[[BoundsValues.Lower|Lower]]''' {{APIComment|Returns the Lower value}}
== Formatted Usage Example ==
{{APIComment|Declare a new repository connection class.}}
        Private WithEvents MyRepository As New Repository
{{APIComment|Connect to the Synthesis repository.}}
        Dim Success As Boolean = False
        Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
{{APIComment|Get the list of Projects in the connected repository.}}
        Dim ListOfModels() As [[NameIdPair Class|NameIdPair]]
        ListOfModels = MyRepository.GetAllModelsInfo()
{{APIComment|Select the ID of the model and retrieve it.}}
        Dim AModel as cModel
        AModel = MyRepository.GetModel(ListOfModels(0).ID)
{{APIComment|Get the Bounds on reliability.}}
        Dim ModelBoundsValue as BoundsValues
        ModelBoundsValue = AModel.Bounds_Reliability(100)
{{APIComment|Get the Upper Bound result.}}
        Dim UpperBoundValue as Double
        UpperBoundValue = ModelBoundsValue.Upper

Revision as of 20:49, 6 February 2014


Model's parameter upper and lower values.

Properties

  • Upper Returns the Upper value
  • Lower Returns the Lower value

Formatted Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Get the list of Projects in the connected repository.

       Dim ListOfModels() As NameIdPair
       ListOfModels = MyRepository.GetAllModelsInfo()

Select the ID of the model and retrieve it.

       Dim AModel as cModel
       AModel = MyRepository.GetModel(ListOfModels(0).ID)

Get the Bounds on reliability.

       Dim ModelBoundsValue as BoundsValues
       ModelBoundsValue = AModel.Bounds_Reliability(100)

Get the Upper Bound result.

       Dim UpperBoundValue as Double
       UpperBoundValue = ModelBoundsValue.Upper