Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Problems w/inehritance
Topic Summary:
Created On: 11-Jun-2003 15:17
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 11-Jun-2003 15:17
User is offline View Users Profile Print this message


Pelp  

Posts: 11
Joined: 9-Apr-2003

Hi -

I'm having some problems turning inheritance off for new object that are created for this function.

--

void createObjects(Module theModule,Object theObject){
current = theModule
for(i=0; i<10; i++){
Object newObjectCreated= create below theObject
newObjectCreated."Object Text" = "I am a new object"

// should turn off inheritance
string inherited({Object newObjectCreated},[AttrType off])
}

--

Could someone tell me what I'm doing wrong?

Thanks

-------------------------
Report this to a Moderator Report this to a Moderator
 11-Jun-2003 21:01
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

The inheritance of Object attributes is controlled at the attribute definition level. If you wish to "turn off inheritance", you must do this by editing the attribute definition, thereby turning it off for all of the Objects in the Module.

If you want a specific Object attribute value to be not inherited, instead of trying to turn off the inheritance (which can not be done Object by Object), simply set the value to something. Because the value is explicitly set for that attribute, inheritance will be "off" and the Object will not receive the value from its parent. It will propogate its value to its children if the child does not also explicitly set the value.

eg, newObjectCreated.attribute="something"

In most cases, I do not use inheritance or default value when defining attributes. There are reasons to turn these flags on, but more reasons to turn them off.

-Dennis

Edited: 11-Jun-2003 at 21:03 by Dennis Lockshine
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.