ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/lib-NodeWay.rb
def add_new_wid(nodelist)
		#nodelist is an array of interger node ids. Adds a way to the list of known ways. Does NOT modify the Database.
		@maxwid += 1
		@way_buff.push([@maxwid,nodelist])
		@log.debug("add_new_wid: WID max is now #{@maxwid}, there are now #{@way_buff.length} ways in the buffer")
		return @maxwid
	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
A class for modified ways that differ from the map or new ways that may need to be created
def add_new_wid(nodelist)
		@maxwid += 1
		@way_buff.push([@maxwid,nodelist])
		@log.debug("add_new_wid: WID max is now #{@maxwid}, there are now #{@way_buff.length} ways in the buffer")
		return @maxwid
	end
def add_new_wid ( nodelist ) @maxwid += 1 @way_buff . push ( [ @maxwid , nodelist ] ) @log . debug ( "add_new_wid: WID max is now #{@maxwid}, there are now #{@way_buff.length} ways in the buffer" ) return @maxwid 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
#nodelist is an array of interger node ids. Adds a way to the list of known ways. Does NOT modify the Database.
nodelist