Sha256: df388075b20fd70141da21669123c8a4a0ad2f986aaa00b2d73906e091da9f63

Contents?: true

Size: 670 Bytes

Versions: 52

Compression:

Stored size: 670 Bytes

Contents

# encoding: ascii-8bit

# Copyright 2014 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt

# This file implements a class to handle responses to limits state changes.

require 'cosmos/packets/limits_response'

class PacketLimitsResponse < Cosmos::LimitsResponse

  def call(packet, item, old_limits_state)
    case item.limits.state
    when :RED_HIGH
      cmd((9990 + Random.rand(10)).to_s, 'NOOP')
    end
  end

end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
cosmos-4.5.2-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.5.2 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.5.1-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.5.1 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.5.0-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.5.0 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.4.2-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.4.2 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.4.1-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.4.1 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.4.0-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.4.0 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.3.0-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.3.0 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.2.4-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.2.4 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.2.3-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.2.3 test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.2.2-java test/performance/config/targets/PACKET/lib/packet_limits_response.rb
cosmos-4.2.2 test/performance/config/targets/PACKET/lib/packet_limits_response.rb