ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/lib-NodeWay.rb
#A class for modified ways that differ from the map or new ways that may need to be created
A class for modified ways that differ from the map or new ways that may need to be created
A class for modified ways that differ from the map or new ways that may need to be created
def fill_buffer(ways)
		@way_buff += ways
		buff_max = @way_buff.map{|x| x[0]}.max
		@maxwid = buff_max if @maxwid < buff_max
		@log.debug("Way_buffer: added #{ways.length} to the buffer from trace db")
	end
def fill_buffer ( ways ) @way_buff += ways buff_max = @way_buff . map { | x | x [ 0 ] } . max @maxwid = buff_max if @maxwid < buff_max @log . debug ( "Way_buffer: added #{ways.length} to the buffer from trace db" ) end
A class for modified ways that differ from the map or new ways that may need to be created
A class for modified ways that differ from the map or new ways that may need to be created
#populates the buffer with values from the array expects 2 tuple of wid (integer) / nids [array of integers]
ways