AtomSpace::Atom
Inherits Reference < Object
Atom base class - fundamental unit of OpenCog knowledge representation
Constructors
new(type : AtomType, truth_value : TruthValue = TruthValue::DEFAULT_TV)
SourceClass methods
Instance methods
arity
Sourceattention_value
Sourceattention_value=(attention_value : AttentionValue | Nil)
Sourceclone
Sourceevaluation_link?
Sourcehandle
Sourceinheritance_link?
Sourcelist_link?
Sourceoutgoing
Sourcepredicate_node?
Sourcesatisfies?(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
Sourcetruth_value=(truth_value : TruthValue)
Sourcetype
Sourcevariable_node?
Source