Sha256: e75b2674484ed36226c0071e96b61908b8d6ef4c4e708dfbe7e29310565ae278

Contents?: true

Size: 1.94 KB

Versions: 2

Compression:

Stored size: 1.94 KB

Contents

# ================
# = Dependencies =
# ================

# Make decoupling easier with an informed LoadPath
$:.unshift(File.dirname(__FILE__))
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'fathom')))

require "gsl"
require 'options_hash'

require 'ext/open_struct'
require 'ext/array'

module Fathom
  lib = File.expand_path(File.dirname(__FILE__))
  $LOAD_PATH.unshift(lib)
  
  # Autoload classes and modules so that we only load as much of the library as we're using.
  # This allows us to have a fairly large library without taking up a lot of memory unless we need it.
  autoload :Inverter, "inverter"
  autoload :BasicNode, "basic_node"
  autoload :PlausibleRange, "plausible_range"
  autoload :R, "plausible_range"
  # autoload :LowerBound, "lower_bound"
  # autoload :UpperBound, "upper_bound"
  # autoload :Distribution, "distribution"
  # autoload :DependencyGraph, "dependency_graph"
  autoload :ValueDescription, "value_description"
  autoload :ValueAggregator, "value_aggregator"
  autoload :ValueMultiplier, "value_multiplier"
  autoload :MonteCarloSet, "monte_carlo_set"
  autoload :CombinedPlausibilities, "combined_plausibilities"
  autoload :CausalGraph, "causal_graph"
  autoload :DataNode, "data_node"
  autoload :KnowledgeBase, "knowledge_base"

  autoload :Import, "import"
  autoload :YAMLImport, 'import/yaml_import'
  autoload :CSVImport, 'import/csv_import'
  autoload :RDFImport, 'import/rdf_import'
  autoload :SQLiteImport, 'import/sqlite_import'
  
  autoload :NodeUtilities, 'node_utilities'
  
  autoload :Simulation, 'simulation'
  autoload :TickMethods, 'simulation/tick_methods'
  autoload :TickSimulation, 'simulation/tick_simulation'

  autoload :Agent, 'agent'
  autoload :Properties, 'agent/properties'
  autoload :AgentCluster, 'agent/agent_cluster'

  def knowledge_base
    @knowledge_base ||= KnowledgeBase.new
  end
  alias :kb :knowledge_base
end

# Temporary
include Fathom
def r
  @r ||= R.new(:min => 1, :max => 10)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fathom-0.2.2 lib/fathom.rb
fathom-0.2.1 lib/fathom.rb