/procedures/meta/comments

Module to determine whether a route is current.

 2 module PARSE_ROUTE_CURRENCY

Method to determine whether a route is current.

 5   def parse_route_currency( route_id )

If the route is current...

 8     if route_is_current?( route_id )

... we update the route current attribute to TRUE.

 11       update_route_hash( route_id, 'TRUE', nil, nil, nil, nil )

Otherwise, if the route is not current ...

 14   else

... we update the route current attribute to FALSE and the route status attribute to UNTRAVERSABLE.

Setting the route status to UNTRAVERSABLE records that the route is not currently traversable - and is used to infer that routes which follow this route are also not currently traversable.

We also record this route as parsed because we don't want to visit it and attempt to parse again.

 19       update_route_hash( route_id, 'FALSE', 'UNTRAVERSABLE', true, nil, nil )
 20     end
 21   end
 22 end