Difference between revisions of "ALTASegment Class"

From ReliaWiki
Jump to navigation Jump to search
Line 7: Line 7:
 
*SegmentEnd  (as ''double'') {{APIComment|The segment's end time.}}
 
*SegmentEnd  (as ''double'') {{APIComment|The segment's end time.}}
 
*Stress      (as ''double'') {{APIComment|The stress level throughout the segment.}}
 
*Stress      (as ''double'') {{APIComment|The stress level throughout the segment.}}
 +
 +
== Usage Example==
 +
{{APIComment|'Declare an ALTAStressProfile object. See [[ALTAStressProfile Class|ALTAStressProfile]].}}
 +
  Dim SP As New ALTAStressProfile("Profile1")
 +
 
 +
{{APIComment|'Add segments.}}
 +
  SP.AddSegment(1, 250)
 +
  SP.AddSegment(2, 300)
 +
  SP.AddSegment(3, 400)
 +
 
 +
{{APIComment|'Get segments.}}
 +
  Dim StressSegments() As [[ALTASegment Class|ALTASegment]]
 +
  StressSegments = SP.GetSegments
 +
 
 +
{{APIComment|'Get the start time of the first segment.}}
 +
  Dim SegStart As Double
 +
  SegStart = StressSegments(0).SegmentStart

Revision as of 23:03, 11 April 2014


Used with the ALTAStressProfile.GetSegments method to define 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