Sha256: 2bfbd9ac1b8867c211b1b2c39c2a5fa80cfe2a98b872961e3b6b8317dc90033e
Contents?: true
Size: 653 Bytes
Versions: 11
Compression:
Stored size: 653 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')) =begin This class is designed to hold a cluster of agents in memory. It runs the simulation locally and speaks to other clusters via EventMachine. In this way, we don't need a Ruby runtime/thread/fiber for each agent, just one per dozen/hundred/thousand agents, depending on what balances the simulation. =end class Fathom::AgentCluster attr_reader :agents def initialize(*agents) @agents = agents end end if __FILE__ == $0 include Fathom # TODO: Is there anything you want to do to run this file on its own? # AgentCluster.new end
Version data entries
11 entries across 11 versions & 1 rubygems