ALTASegment Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Template:APIClass|ALTAStressProfile Class|ALTAStressProfile}}
{{Template:APIClass|ALTAStressProfile Class|ALTAStressProfile}}
Used with the [[ALTAStressProfile.GetSegments]] method to define each segment of a stress profile.
Used with the [[ALTAStressProfile.GetSegments]] method to return each segment of a stress profile.


== Properties ==
== Properties ==

Revision as of 23:03, 11 April 2014


Used with the ALTAStressProfile.GetSegments method to return each segment of a stress profile.

Properties

  • SegmentStart (as double) The segment's start time.
  • SegmentEnd (as double) The segment's end time.
  • Stress (as double) The stress level throughout the segment.

Usage Example

 'Declare an ALTAStressProfile object. See ALTAStressProfile. 
 Dim SP As New ALTAStressProfile("Profile1")
 
 'Add segments. 
 SP.AddSegment(1, 250)
 SP.AddSegment(2, 300)
 SP.AddSegment(3, 400)
 
 'Get segments. 
 Dim StressSegments() As ALTASegment
 StressSegments = SP.GetSegments
 
 'Get the start time of the first segment. 
 Dim SegStart As Double
 SegStart = StressSegments(0).SegmentStart