ALTAStressProfile.AddSegment: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "ALTAStressProfile.AddSegment" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
No edit summary
Line 1: Line 1:
{{Template:APIClass|ALTAStressProfile Class|ALTAStressProfile}}
{{Template:APIClass|ALTAStressProfile Class|ALTAStressProfile}}
 
{{Template:ALTAStressProfile.AddSegment.Cmt}
Add a new segment into the Stress Profile


== Method Syntax ==
== Method Syntax ==
Line 13: Line 12:
{{APIPrefix|As Double}}
{{APIPrefix|As Double}}
{{APIName|)}}
{{APIName|)}}
{{APIComment|Adds a new segment to the stress profile.}}


== Parameters ==
== Parameters ==

Revision as of 18:43, 30 January 2014


{{Template:ALTAStressProfile.AddSegment.Cmt}

Method Syntax

AddSegment( ByVal SegmentEnd As Double , ByVal Stress As Double )

Parameters

SegmentEnd The time at the end of this segment.

Stress The stress during this segment.

Usage Example

Declare an ALTAStressProfile. See ALTAStressProfile for additional details.

       Dim sp = New ALTAStressProfile("Profile1")

Add segments.

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