AtomSpace::Atom
Inherits Reference < Object
Atom base class - fundamental unit of OpenCog knowledge representation
Constructors
new(type : AtomType, truth_value : TruthValue = TruthValue::DEFAULT_TV)
Class methods
next_handle
Generate next unique handle
Instance methods
==(other : Atom) : Bool
Check equality based on type and content
arity
attention_value
attention_value=(attention_value : AttentionValue | Nil)
clone
concept_node?
Atom type checking predicates
content_equals?(other : Atom) : Bool
Content equality check (implemented by subclasses)
evaluation_link?
handle
incoming
Get all atoms in the incoming set (atoms that reference this one)
inheritance_link?
inspect(io : IO) : Nil
Get string representation for logging/debugging
link?
Check if this is a link
list_link?
name
Abstract methods to be implemented by subclasses
node?
Check if this is a node
outgoing
predicate_node?
satisfies?(pattern : Atom) : Bool
Hash function for use in collections Check if atom satisfies a pattern
to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
truth_value
truth_value=(truth_value : TruthValue)
type
variable_node?