Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OSEE » Custom data model - how to specify type inheritance
Custom data model - how to specify type inheritance [message #14507] Fri, 01 May 2009 08:24 Go to next message
Mark D-B is currently offline Mark D-B
Messages: 188
Registered: July 2009
Senior Member
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 #14714 is a reply to message #14507] Thu, 07 May 2009 15:29 Go to previous messageGo to next message
Roberto Escobar is currently offline Roberto Escobar
Messages: 10
Registered: July 2009
Junior Member
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
Re: Custom data model - how to specify type inheritance [message #14834 is a reply to message #14714] Fri, 08 May 2009 08:03 Go to previous message
Mark D-B is currently offline Mark D-B
Messages: 188
Registered: July 2009
Senior Member
Thanks Roberto, I hadn't realised that I could just use the same base
factory class. Much appreciated.
Re: Custom data model - how to specify type inheritance [message #573574 is a reply to message #14507] Thu, 07 May 2009 15:29 Go to previous message
Roberto Escobar is currently offline Roberto Escobar
Messages: 10
Registered: July 2009
Junior Member
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
Re: Custom data model - how to specify type inheritance [message #573623 is a reply to message #14714] Fri, 08 May 2009 08:03 Go to previous message
Mark D-B is currently offline Mark D-B
Messages: 188
Registered: July 2009
Senior Member
Thanks Roberto, I hadn't realised that I could just use the same base
factory class. Much appreciated.
Previous Topic:Can I start the app server in Eclipse?
Next Topic:Installation on Windows - Environment
Goto Forum:
  


Current Time: Sat Apr 19 23:14:15 EDT 2014

Powered by FUDForum. Page generated in 0.01560 seconds