Custom data model - how to specify type inheritance [message #14507] |
Fri, 01 May 2009 08:24  |
Eclipse User |
|
|
|
In the demo, we have lots of artifact types such as components, subsystem
requirements, software design, etc.
I'm presuming (possibly quite incorrectly) that these are defined using
type inheritance from basic types such as "Artifact", "WordArtifact", and
"NativeArtifact".
Now, I can see how to define new types in the form of
OseeTypes_ProgramAndCommon.xml but the text seems to imply I can create a
hierarchy of types where the parent's attributes and relations are
inherited. That makes a lot of sense but I can't see an example of how to
base my new type off something lower down the inheritance tree than the
basic types in org.eclipse.osee.framework.skynet.core.artifact.factory.
Is there a different xml table format to allow inheritance from a lower
level artifact that doesn't have its own factory class?
|
|
|
|
|
Re: Custom data model - how to specify type inheritance [message #573574 is a reply to message #14507] |
Thu, 07 May 2009 15:29  |
Eclipse User |
|
|
|
To use type inheritance via spreadsheet do the following:
1. In the artifact type definition section do the following:
Factory Class, Artifact Type Name, Super Type Name
...BasicArtifactFactory BaseObject Artifact
...BasicArtifactFactory Level1ChildObject BaseObject
...BasicArtifactFactory Level2ChildObject Level1ChildObject
2. In the Artifact Type to Attribute Name definition section
Artifact Type Name AttributeName
BaseObject W
BaseObject X
Level1ChildObject Y
Level2ChildObject Z
A graphical representation of the artifact types that will be created
would look like this:
1. Artifact
Name
Annotation
Static Id
2. Base Object - inherits from Artifact
W,X + artifact attributes
3. Level1ChildObject - inherits from Base Object
Y + baseobject attributes + artifact attributes
4. Level2ChildObject - inherits from Level1ChildObject
Z + Level1ChildObject attributes + baseobject attributes + artifact
attributes
|
|
|
|
Powered by
FUDForum. Page generated in 0.03396 seconds