Difference between revisions of "ALTASegment Class 10"

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:API}}{{DISPLAYTITLE: ALTASegment Class (Version 10)}}{{Template:APIBreadcrumb}}<div style="border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto…')
 
(Replaced content with 'Category:For Deletion')
 
Line 1: Line 1:
{{Template:API}}{{DISPLAYTITLE: ALTASegment Class (Version 10)}}{{Template:APIBreadcrumb}}<div style="border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em; float:right;"><span style="font-family:arial;font-size:5;color:#585858">Other Versions: [[ALTASegment Class|Version 11]]</span></div>
+
[[Category:For Deletion]]
 
 
 
 
Represents the time segments of an associated [[ALTAStressProfile Class|ALTAStressProfile]] object.
 
 
 
== Properties ==
 
{| {{APITable}}
 
|-
 
| style="width: 180px;"|SegmentEnd||The segment's end time. '''Double'''.
 
|-
 
|SegmentStart||The segment's start time. '''Double'''.
 
|-
 
|Stress||The stress level throughout the segment. '''Double'''.
 
|}
 
 
 
 
 
== Example==
 
 
 
'''VBA'''
 
 
{{APIComment|'Declare an ALTAStressProfile object.}}
 
  {{APIPrefix|Dim}} SP {{APIPrefix|As New}} ALTAStressProfile
 
 
 
{{APIComment|'Add segments.}}
 
  {{APIPrefix|Call}} SP.AddSegment(1, 250)
 
  {{APIPrefix|Call}} SP.AddSegment(2, 300)
 
  {{APIPrefix|Call}} SP.AddSegment(3, 400)
 
 
 
{{APIComment|'Get segments.}}
 
  {{APIPrefix|Dim}} StressSegments() {{APIPrefix|As}} ALTASegment
 
  StressSegments = SP.GetSegments
 
 
 
{{APIComment|'Get the start time of the first segment.}}
 
  {{APIPrefix|Dim}} SegStart {{APIPrefix|As}} Double
 
  SegStart = StressSegments(0).SegmentStart
 
 
 
'''VB.NET'''
 
 
 
{{APIComment|'Declare an ALTAStressProfile object.}}
 
  {{APIPrefix|Dim}} SP {{APIPrefix|As New}} ALTAStressProfile
 
 
 
{{APIComment|'Add segments.}}
 
  SP.AddSegment(1, 250)
 
  SP.AddSegment(2, 300)
 
  SP.AddSegment(3, 400)
 
 
 
{{APIComment|'Get segments.}}
 
  {{APIPrefix|Dim}} StressSegments() {{APIPrefix|As}} ALTASegment
 
  StressSegments = SP.GetSegments
 
 
 
{{APIComment|'Get the start time of the first segment.}}
 
  {{APIPrefix|Dim}} SegStart {{APIPrefix|As}} Double
 
  SegStart = StressSegments(0).SegmentStart
 

Latest revision as of 15:21, 23 March 2017