Line
A fixed sequence of stops a service runs, cycle after cycle.
A specification: declared once, shared by every vehicle that runs it, and never consumed. It is the third of the three ways a tour comes into existence -- declared here, planned by a tour policy from committed tasks, or written out by a modeller -- and the only one in which the same itinerary recurs.
One cycle is one tour, built fresh from the line each time it is assigned. That keeps Tour what it is -- consumed, with a cursor that only advances -- rather than making it circular, and it puts a decision point at the end of every cycle: the vehicle declares itself available and the dispatcher decides whether it runs the line again, runs another, or goes to the depot. The life of one tour is then the cycle time, which is the number a route study is usually about.
Parameters
what the service is called
where it calls, in order
true for a loop that comes back to where it started, which adds a final leg to the first stop's location so that the cycle time is a whole round and the vehicle finishes in position for the next one. False for a line that ends where its last stop is, which is the shape of a terminal-to-terminal run whose return is a separate line.