XPAC Reference Guide

Methods

Methods

Previous topic Next topic  

Methods

Previous topic Next topic  

Method

Description

AddSegment(double Distance, double Grade, double RollingResistance, double FinalVelocity, double MaximumVelocity, double WeightPercent)

This method adds a new HaulSegment object into the HaulRoute object, with the values supplied. Distance should be supplied as metres. Grade, RollingResistance and WeightPercent should be supplied as a Percentage, and FinalVelocity and MaximumVelocity should be supplied as km/hr.

Insert(long Position, HaulSegment NewSeg)

This method inserts the supplied HaulSegment into the HaulRoute object

Add(HaulSegment newSeg)

This method appends the supplied HaulSegment to the end of the HaulRoute object.

Remove(long Position)

This method removes the HaulSegment at the specified position from the HaulRoute object

RemoveAll()

This method removes all HaulSegment objects from the HaulRoute object.