Changes between Initial Version and Version 1 of Old/Documentation/orbitHandler/printNodeSet


Ignore:
Timestamp:
Aug 25, 2006, 10:41:43 PM (18 years ago)
Author:
cmdavies
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Documentation/orbitHandler/printNodeSet

    v1 v1  
     1[wiki:Documentation]
     2| !printNodeSet
     3
     4= Print Node Set =
     5
     6Displays all nodes in the node set as a grid
     7
     8Usage
     9{{{
     10joeuser@console.sb1:~$ ./printNodeSet nodeset
     11Y
     1220 ************........
     1319 **.*********........
     1418 ************........
     1517 *************.......
     1616 *************.......
     1715 *************.......
     1814 *********.***.......
     1913 *************.......
     2012 *************.......
     2111 *.***********.......
     2210 *************.......
     239  *************.......
     248  *****.*******.......
     257  *************.......
     266  *************.......
     275  *************.......
     284  *************.......
     293  *************.......
     302  *************.......
     311  ***.*****.***.......
     32 X 12345678901234567890
     33            1         2
     34}}}
     35
     36
     37Source
     38{{{
     39#!/usr/bin/ruby
     40require 'orbit_Support'
     41
     42puts "Y"
     43ons = OrbitNodeSets.new(ARGV[0])
     44for y in 1..20
     45    output = "#{21-y} "
     46    output = output + " " if (21-y).to_s.length == 1
     47    for x in 1..20
     48
     49        if ons.isNodeSelected(x,21-y) then
     50            output = output + "*"
     51        else
     52            output = output + "."
     53        end
     54    end
     55    puts output
     56
     57end
     58puts " X 12345678901234567890"
     59puts "            1         2"
     60}}}