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 dump_buffer()
		dump = Array.new()
		@way_buff.each{|x| x[1].each{|nid| dump.push([x[0],nid])}}
		return dump
	end
def dump_buffer ( ) dump = Array . new ( ) @way_buff . each { | x | x [ 1 ] . each { | nid | dump . push ( [ x [ 0 ] , nid ] ) } } return dump 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
#returns the buffers contents as an array of 2 tuples wid/nid