Harium / suneidesis

A project to represent knowledge
MIT License
2 stars 1 forks source link

[Core] Add Inheritance #70

Closed yuripourre closed 3 years ago

yuripourre commented 3 years ago

Allows definition of attributes based on a parent concept

Multiple parents can be defined by composition.

The structure can be similar to abilities. The map can be merged (simpler), or the attributes can be copied and flagged (with the parent concept).

Eg: Animal is a Being Mickey is Animal Mickey is a fictional character

Creature is Being
Creature is Conscious
ConsciousSimulation is Conscious
Hal is ConsciousSimulation
yuripourre commented 3 years ago

thing.is(concept) { //copy all attributes return this; } //Method to query attributes thing has(characteristic) { return boolean; } Method to add attributes thing set(concept, amount?){ // }

bat.is(mammal).is(flyingCreature).set(wings, intAmount(2));