This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Available Resources</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0s"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script> | |
<script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore.js"></script> | |
<style type="text/css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original test01.rb | |
defProperty('res1', "unconfigured-node-1", "ID of a node") | |
defProperty('res2', "unconfigured-node-2", "ID of a node") | |
defGroup('Actor', property.res1) | |
onEvent(:ALL_UP) do |event| | |
wait 3 | |
info "TEST - allGroups" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pp' | |
require 'omf_rete/store' | |
N = 10 | |
s = OMF::Rete::Store.create 3 | |
(1..N).each do |i| | |
s.addTuple(["node_#{i}", 'status', (i % 2) == 0 ? 'ok' : 'failure']) | |
end | |