ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/elastic_pathing.rb
################################################################################
#This is code to make plots for papers.
#Print out all nodes explored at this level of progress.
This is code to make plots for papers.
Print out all nodes explored at this level of progress.
This is code to make plots for papers . Print out all nodes explored at this level of progress .
def printPlottable(progress, partial_paths)
  printed = {}
  partial_paths.each {|ep|
    ep.path.each {|node|
      if (not printed.has_key? node)
        putlog "PLOT EXPLORED #{progress} #{node.lon} #{node.lat}"
        printed[node] = true
      end
    }
  }
end
def printPlottable ( progress , partial_paths ) printed = { } partial_paths . each { | ep | ep . path . each { | node | if ( not printed . has_key? node ) putlog "PLOT EXPLORED #{progress} #{node.lon} #{node.lat}" printed [ node ] = true end } } end
This is code to make plots for papers.
This is code to make plots for papers .
#Keep a map of already printed nodes to avoid making a huge output file.
progress
partial_paths