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 add_node(lat,lon)
		@maxnid += 1
		@nodes_buff.push([@maxnid,lat,lon])
		@log.debug("add_node: NID max is now #{@maxnid}, there are now #{@nodes_buff.length} nodes in the buffer")
		return @maxnid
	end
def add_node ( lat , lon ) @maxnid += 1 @nodes_buff . push ( [ @maxnid , lat , lon ] ) @log . debug ( "add_node: NID max is now #{@maxnid}, there are now #{@nodes_buff.length} nodes in the buffer" ) return @maxnid 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 .
#lat,lon are floats. Adds a node to the list of known nodes. Does NOT modify the Database.
lat
lon