# Lesson 21 - Module 8 Other representation formalisms Version 1 CSE IIT Kharagpur Lesson 21 Frames II Version 1 CSE IIT Kharagpur Slots as Objects

This preview shows pages 1–5. Sign up to view the full content.

Module 8 Other representation formalisms Version 1 CSE IIT, Kharagpur

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Lesson 21 Frames – II Version 1 CSE IIT, Kharagpur
Slots as Objects How can we to represent the following properties in frames? Attributes such as weight, age be attached and make sense. Constraints on values such as age being less than a hundred Default values Rules for inheritance of values such as children inheriting parent's names Rules for computing values Many values for a slot. A slot is a relation that maps from its domain of classes to its range of values. A relation is a set of ordered pairs so one relation is a subset of another. Since slot is a set the set of all slots can be represent by a metaclass called Slot , say. Consider the following: SLOT isa: Class instance: Class domain: range: range-constraint: definition: default: to-compute: single-valued: Coach instance: SLOT domain: Rugby-Team range: Person Version 1 CSE IIT, Kharagpur

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
range-constraint: (experience x.manager) default: single-valued: TRUE Colour instance: SLOT domain: Physical-Object range: Colour-Set single-valued: FALSE Team-Colours instance: SLOT isa: Colour domain: team-player range: Colour-Set range-constraint: not Pink single-valued: FALSE Position instance: SLOT domain: Rugby-Player range: { Back, Forward, Reserve }
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/20/2010 for the course MCA DEPART 501 taught by Professor Hemant during the Fall '10 term at Institute of Computer Technology College.

### Page1 / 8

Lesson 21 - Module 8 Other representation formalisms Version 1 CSE IIT Kharagpur Lesson 21 Frames II Version 1 CSE IIT Kharagpur Slots as Objects

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online