class RubyAi::Search::Core::Frontier

Attributes

store[R]

Public Class Methods

new() click to toggle source
# File lib/ruby_ai/search/core/frontier.rb, line 8
def initialize
  @store = []
end

Public Instance Methods

append(element:) click to toggle source
# File lib/ruby_ai/search/core/frontier.rb, line 12
def append(element:)
  raise NotImplementedError
end
empty?() click to toggle source
# File lib/ruby_ai/search/core/frontier.rb, line 24
def empty?
  @store.empty?
end
include?(element:) click to toggle source
# File lib/ruby_ai/search/core/frontier.rb, line 28
def include?(element:)
  @store.include?(element)
end
pop() click to toggle source
# File lib/ruby_ai/search/core/frontier.rb, line 16
def pop
  raise NotImplementedError
end
size() click to toggle source
# File lib/ruby_ai/search/core/frontier.rb, line 20
def size
  @store.size
end