示例#1
0
        public Lane AddLane()
        {
            Lane lane = new Lane(Lanes.Count());
            Lanes.Add(lane);

            return lane;
        }
示例#2
0
 public LanePoint AddPoint(Lane lane, GitRevision revision)
 {
     LanePoint point = lane.AddPoint(lane, Points.Count);
     Points.Add(point);
     point.Revision = revision;
     return point;
 }
示例#3
0
 public LanePoint AddPoint(Lane lane, int pointNumber)
 {
     LanePoint point = new LanePoint(pointNumber);
     point.Lane = this;
     Points.Add(point);
     return point;
 }
示例#4
0
 public int GetOptimalLaneNumber(Lane lane)
 {
     return lane.LaneNumber;
     //return Math.Max(GetLanesForPointnumber(lane.Points[0].PointNumber).Count(), GetLanesForPointnumber(lane.Points[lane.Points.Count-1].PointNumber).Count()-1);
                     //GetLanesForPointnumber(lane.Points[lane.Points.Count-1].PointNumber).Count())-1;
 }