ALTAStressProfile.AddSegment: Difference between revisions

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


== Method Syntax ==
== Method Syntax ==
{{APIName|AddSegment(}}
*AddSegment( SegmentEnd {{APIPrefix|As Double}} , Stress {{APIPrefix|As Double}} )  
{{APIPrefix|ByVal}}
{{APIName|SegmentEnd}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|Stress}}
{{APIPrefix|As Double}}
{{APIName|)}}


== Parameters ==
Parameters
'''SegmentEnd'''
:''SegmentEnd'': The time at the end of this segment.
The time at the end of this segment.
:''Stress'': The stress during this segment.
 
'''Stress'''
The stress during this segment.


== Usage Example ==
== Usage Example ==


{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]].}}
         Dim sp = New ALTAStressProfile("Profile1")
         Dim sp = New ALTAStressProfile("Profile1")



Revision as of 17:35, 11 March 2014


Adds a new segment to the stress profile.

Method Syntax

  • AddSegment( SegmentEnd As Double , Stress As Double )

Parameters

SegmentEnd: The time at the end of this segment.
Stress: The stress during this segment.

Usage Example

Declare an ALTAStressProfile.

       Dim sp = New ALTAStressProfile("Profile1")

Add segments.

       sp.AddSegment(1, 250)
       sp.AddSegment(2, 300)
       sp.AddSegment(3, 400)