lib/spnet/storage/network_state.rb in spnet-0.1.5 vs lib/spnet/storage/network_state.rb in spnet-0.1.6

- old
+ new

@@ -6,16 +6,15 @@ class NetworkState include Hashmake::HashMakeable # Define arg specs to use in processing hashed arguments during #initialize. ARG_SPECS = { - :name => arg_spec(:reqd => false, :type => String, :default => ""), :block_states => arg_spec_hash(:reqd => false, :type => BlockState), :link_states => arg_spec_array(:reqd => false, :type => LinkState), } - attr_reader :sample_rate, :name, :block_models, :link_models + attr_reader :sample_rate, :block_models, :link_models # A new instance of NetworkState. # @param [Hash] args Hashed arguments for initialization. See Network::ARG_SPECS # for details of which keys are required. def initialize args = {} @@ -36,9 +35,9 @@ links = [] @link_states.each do |link_state| links.push link_state.make_link blocks end - Network.new :name => @name, :blocks => blocks, :links => links, :sample_rate => sample_rate + Network.new :blocks => blocks, :links => links, :sample_rate => sample_rate end end end