Example
Worth noticing here is the easy analogical reasoning (comparison) that can be done between a boy and a monkey just by having similarly named slots.
Also notice that Alex, an instance of a boy, inherits default values like "Sex" from the more general parent object Boy, but the boy may also have different instance values in the form of exceptions such as the number of legs.
Slot | Value | Type |
---|---|---|
ALEX | _ | (This Frame) |
NAME | Alex | (key value) |
ISA | Boy | (parent frame) |
SEX | Male | (inheritance value) |
AGE | IF-NEEDED: Subtract(current,BIRTHDATE); | (procedural attachment) |
HOME | 100 Main St. | (instance value) |
BIRTHDATE | 8/4/2000 | (instance value) |
FAVORITE_FOOD | Spaghetti | (instance value) |
CLIMBS | Trees | (instance value) |
BODY_TYPE | Wiry | (instance value) |
NUM_LEGS | 1 | (exception) |
Slot | Value | Type |
---|---|---|
BOY | _ | (This Frame) |
ISA | Person | (parent frame) |
SEX | Male | (instance value) |
AGE | Under 12 yrs. | (procedural attachment - sets constraint) |
HOME | A Place | (frame) |
NUM_LEGS | Default = 2 | (default, inherited from Person frame) |
Slot | Value | Type |
---|---|---|
MONKEY | _ | (This Frame) |
ISA | Primate | (parent frame) |
SEX | OneOf(Male,Female) | (procedural attachment) |
AGE | an integer | (procedural attachment - sets constraint) |
HABITAT | Default = Jungle | (default) |
FAVORITE_FOOD | Default = Bananas | (default) |
CLIMBS | Trees | _ |
BODY_TYPE | Default = Wiry | (default) |
NUM_LEGS | Default = 2 | (default) |
Read more about this topic: Frame (artificial Intelligence)
Famous quotes containing the word example:
“Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.”
—Marcel Proust (18711922)