class Object

Constants

Bundles

Bundle support

In Rock, bundles are the packages in which system-related scripting, modelling and tools are included. They are meant to “bind together” the different components, packages and tool configuration from rock.

In practice, the bundle implementation is a thin wrapper on top of the rest of the rock

Bundle-aware scripts should simply use Bundle.initialize / Bundle.load instead of Orocos.initialize / Orocos.load. This is in principle enough to get bundle integration. All the rock-* tools on which bundle integration makes sense should do that already.

Public Instance Methods

compute_frequency(now, queue, window_duration) click to toggle source
# File bin/rock-hz, line 58
def compute_frequency(now, queue, window_duration)
    return 0 if queue.empty?

    deadline = now - window_duration
    while !queue.empty? && (queue.last < deadline)
        queue.pop
    end
    if !queue.empty?
        Float(queue.size) / (now - queue.last)
    else
        0
    end
end
disable_all() click to toggle source
# File bin/rock-inspect, line 12
def disable_all
    @search_filter[:no_ports] = true
    @search_filter[:no_tasks] = true
    @search_filter[:no_deployments] = true
    @search_filter[:no_types] = true
    @search_filter[:no_widgets] = true
    @search_filter[:no_plugins] = true
    @search_filter[:no_projects] = true
end