Class: Eg::Net::Simulator
Constant Summary
collapse
- @@metadata =
{'coord' => GeoCoordinate}
Constants inherited
from Fit::Fixture
Fit::Fixture::GRAY, Fit::Fixture::GREEN, Fit::Fixture::RED, Fit::Fixture::YELLOW
Instance Attribute Summary collapse
Attributes inherited from Fit::Fixture
#args, #counts, #listener, #summary
Class Method Summary
collapse
Instance Method Summary
collapse
camel, #check, #do_cell, #do_cells, #do_row, #do_rows, #do_table, #do_tables, #error, escape, #exception, #find_class, #fixture_name, #get_args_for_table, #get_linked_fixture_with_args, gray, #ignore, #info, #interpret_following_tables, #interpret_tables, label, #right, #total_errors, #totals, #wrong
Constructor Details
Returns a new instance of Simulator.
49
50
51
52
|
# File 'lib/eg/net/simulator.rb', line 49
def initialize
super
@nodes = 0
end
|
Instance Attribute Details
#nodes ⇒ Object
Returns the value of attribute nodes.
48
49
50
|
# File 'lib/eg/net/simulator.rb', line 48
def nodes
@nodes
end
|
#zip ⇒ Object
Returns the value of attribute zip.
48
49
50
|
# File 'lib/eg/net/simulator.rb', line 48
def zip
@zip
end
|
Class Method Details
47
|
# File 'lib/eg/net/simulator.rb', line 47
def Simulator.metadata; @@metadata; end
|
Instance Method Details
#cancel ⇒ Object
59
|
# File 'lib/eg/net/simulator.rb', line 59
def cancel; end
|
#coord ⇒ Object
56
|
# File 'lib/eg/net/simulator.rb', line 56
def coord; @coord; end
|
#coord=(value) ⇒ Object
53
54
55
|
# File 'lib/eg/net/simulator.rb', line 53
def coord= value
@coord = value
end
|
#name(s) ⇒ Object
60
|
# File 'lib/eg/net/simulator.rb', line 60
def name s; end
|
#new_city ⇒ Object
57
|
# File 'lib/eg/net/simulator.rb', line 57
def new_city; end
|
#ok ⇒ Object
58
|
# File 'lib/eg/net/simulator.rb', line 58
def ok; @nodes += 1; end
|
#parse(string, klass) ⇒ Object
#population(p) ⇒ Object
61
|
# File 'lib/eg/net/simulator.rb', line 61
def population p; end
|