ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/lib-NodeWay.rb
#A class for containing nodes that are not in a MAP DB. This should not be instantiated
A class for containing nodes that are not in a MAP DB. This should not be instantiated
A class for containing nodes that are not in a MAP DB . This should not be instantiated
def fill_buffer(nodes)
		@nodes_buff += nodes
		buff_max = @nodes_buff.map{|x| x[0]}.max
		@maxnid = buff_max if @maxnid < buff_max
		@log.debug("node_buffer: added #{nodes.length} to the buffer from trace db")
	end
def fill_buffer ( nodes ) @nodes_buff += nodes buff_max = @nodes_buff . map { | x | x [ 0 ] } . max @maxnid = buff_max if @maxnid < buff_max @log . debug ( "node_buffer: added #{nodes.length} to the buffer from trace db" ) end
A class for containing nodes that are not in a MAP DB.
A class for containing nodes that are not in a MAP DB .
#nodes should be an array of 3 tuples nid/lat/lon
nodes