/// <summary> /// Parses a WTTTripSurrogate object into a WTTTrip Object /// </summary> /// <param name="SurrogateTrip"></param> private void ParseSurrogateWTTTrip(WTTTripSurrogate SurrogateTrip) { this._StartDate = SurrogateTrip.StartDate; this.Location = SurrogateTrip.Location; this.DepPassTime = SurrogateTrip.DepPassTime; this.ArrTime = SurrogateTrip.ArrTime; this.IsPassTime = SurrogateTrip.IsPassTime; this.Platform = SurrogateTrip.Platform; this.Line = SurrogateTrip.Line; this.Path = SurrogateTrip.Path; this.AutoLine = SurrogateTrip.AutoLine; this.AutoPath = SurrogateTrip.AutoPath; this.DownDirection = SurrogateTrip.DownDirection; this.PrevPathEndDown = SurrogateTrip.PrevPathEndDown; this.NextPathStartDown = SurrogateTrip.NextPathStartDown; this.StopLocation = SurrogateTrip.StopLocation; this.DwellTime = SurrogateTrip.DwellTime; this.BerthsHere = SurrogateTrip.BerthsHere; this.AllowStopsOnThroughLines = SurrogateTrip.AllowStopsOnThroughLines; this.WaitForBookedTime = SurrogateTrip.WaitForBookedTime; this.SetDownOnly = SurrogateTrip.SetDownOnly; this.Activities = SurrogateTrip.Activities; }
/// <summary> /// Instantiates a WTTTrip object from a WTTTripSurrogate object and start date /// </summary> /// <param name="SurrogateTrip">The WTTTripSurrogate object</param> internal WTTTrip(WTTTripSurrogate SurrogateTrip) { ParseSurrogateWTTTrip(SurrogateTrip); }