using System; using System.Collections.Generic; using System.Text; using System.Xml.Serialization; namespace OpenTraffic.Model.Result { [Serializable] public class ResultRoute { [XmlAttribute] public float split; [XmlAttribute] public int cl; [XmlAttribute] public int routeId; [XmlAttribute] public float meanTravelTime; [XmlAttribute] public float vehicles; public ResultRoute() { } public ResultRoute(float split, int cl, int routeId, float meanTravelTime) { this.split = split; this.cl = cl; this.routeId = routeId; this.meanTravelTime = meanTravelTime; } public ResultRoute(float split, Class c, OpenTraffic.Model.Route.RouteContainer r, float meanTravelTime) { this.split = split; this.cl = c.Id; this.routeId = r.Id; } } }