Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jeshaw2

Pages: 1 ... 44 45 [46] 47
Uml Process / Re: Pure virtual stereotype
« on: August 31, 2005, 01:49:16 pm »
I don't think it breaks it, it just extends it.

Uml Process / Re: AssociationClass & Operations?
« on: August 30, 2005, 12:39:51 pm »
I think from 7.3.4 and 7.3.5 of the UJML spec, it is entirely possible for an AssociationClass to have a behavior.

For example, such an association, having a temporal constraint, could notify other objects when the constraint is satisfied or dissatisfied.  When a part-time employee comes into his scheduled work period, the association could notify a combo-box listing currently active employees.

Uml Process / Re: Modeling web applications with UML
« on: April 29, 2005, 09:31:39 pm »

I, too, have been struggling with the conceptual difference between nesting (containment) and composite aggregation.

Does anybody have a definitive answer?

I'm not a UML expert, or even a journyman, but I think the onset of nested classes in UML may be in support of a feature lately added to the Java Language.  Here is a link to the Java tutorial that talks about what a nested class and what kinds of problems it solves.

I have other similar links if anyone is interested...


Uml Process / Re: Specification Language for method
« on: March 17, 2005, 01:45:49 pm »
My thoughts were as follows:
  • I understand that Use Case, and indeed all of UML model development, does not model how user goals are achieved.  The focus is on what is achieved and how the interaction of participants work to achieve those goals. However, at some time the rubber must meet the road and guidance is needed by programmers not familiar with the problem domain as to how certain logic is to proceed.  How many of us know how to apply the "Rule of 7/8s" to calculate a loan's payoff balance, or how to determine the volume of a sphere?
  • Use Case diagrams are usually accompanied by a formal text document.  Normally, they are managed formally under some type of revision control system. Perhaps we can extend its use to document all-gory-isims also?
  • In his book Writing Effective Use Cases,  Alistair Cockburn speaks of Use Cases written at three levels:  User Goals, Summary Goals, and Subfunction.  Much of the Use Case discussion I see here is at the User Goal level and above.  Those are the diagrams and documents that are created at Use Case time.
  • What we are talking about here is done, not at Use Case Time, but very close to Implementation Time where the model is realized in software.
  • Application System components, classes and objects are things used at the subfunction level by software developers;  ergo, Use Cases can be developed at that level too.
  • Many of the subheadings in a Use Case document also apply at the subfunction level too.  Only an addition of a new subheading type is needed to give software developers the guidance needed to be succesful.
  • Why invent a new document structure when a little bit of pseudocode can be added to an existing tool, used at a different modeling time, targeted at a different type of actor; i.e.; the developer?

And that's tortured path of how I came to my idea above .  ;D

Uml Process / Re: Specification Language for method
« on: March 16, 2005, 10:04:04 pm »
This may sound stupid at first, but give it some thought...

What about writing a textual, class-level Use Case to describe the behaviour of the class with sub-use cases for each method?

Uml Process / Re: Diagramming Nested Classes
« on: March 15, 2005, 08:54:08 am »
My appologies for lousy keying skills.  I've successfully compiled this code:

Code: [Select]

class top {
   int i = 33;

  class myNestedMember { //member inner class
      int k = i;
      int foo() {return this.k;}

  void doCalclulations() {

      myNestedMember mn1 = new myNestedMember();
      myNestedMember mn2 = new myNestedMember();
      mn1.k = 654 *;

I'd appreciate whatever you can mail to me.

Uml Process / Re: Diagramming Nested Classes
« on: March 15, 2005, 06:16:56 am »
I'd love to try reverse engineering, but my product license does not include that feature.

Uml Process / Diagramming Nested Classes
« on: March 14, 2005, 12:39:08 pm »
Java allows Nested classes of various types.  This includes: static and inner.   Inner classes are further classified as member, local, and anonymmous.

I'm wondering how the nesting of these classes are modeled in UML 2.0 ala EA?

For the curious, here is sample code for a Member Class:

Code: [Select]

class top {
   int i = 33;

   class my NestedMember { //member inner class
            int k = i;
            int foo() {return this.k;}

   void doCalclulations() {

           myNestedMember mn1 = new myNestedMember;
           myNestedMember mn2 = new myNestedMember;
           mn1.k = 654 *;


Uml Process / Tagged values
« on: February 05, 2005, 09:16:59 pm »
I don't understand what a tagged value is.  I mean: How does a 'tagged value' differ from an attribute in a class element?


Uml Process / Re: How to model "IsATypeOf"
« on: January 24, 2005, 08:26:37 pm »
Well, here is what I'm doing until the beard stroking is accomplished.  Perhaps this will generate some productive discussion.

First, I define two new steriotypes:
"GeneralizationSet" on a base of 'association', and
"typeOf" on a base of 'dependancy'

Second, I draw the generalized table above the IsATypeOf tables.

Third, I put a diagonal, n-ary association between them giving it a name that is also the name of the data element that discriminates between the different types.

Fourth, I draw an nesting line from the diagonal association to the generalized table and steriotype it as <<typeOf>>.  The use of the nesting line communicates that the fields in the 'IsATypeOf' tables actually exist in the 'generalized' table.

Finally, I draw generalization lines from the 'IsATypeOF' tables to the diagonal association and steriotype them as <<GeneralizationSet>>.  This is in deferance to the UML 2.0 specification

This may be a bit kinky and I don't expect EA to generate code from it, but it communicates my design.  If I've done real damage to the notational syntax of UML 2.0, I'm open to good suggestions.

Perhaps I should use the C++ construct of virtual inheritance supported by EA. (See the thread on this in the general discussion forum.)

Uml Process / Re: How to model "IsATypeOf"
« on: January 19, 2005, 09:21:49 pm »
Sounds like its time to come up with a <<IsATypeOF>>  steriotype for the Generalization link?  

Its attributes could control how to generate the DDL without too much trouble I think. (Consolidated or Seperate tables, etc.)

Uml Process / Re: How to model "IsATypeOf"
« on: January 15, 2005, 07:17:04 pm »
Well, I started with that thought, but generalizations are a static sort of thing that lead to multiple database tables, one for the parent and one each for each sub-type.

How do I extend this into dynamic generalizations where multiple types occur in one table?  How do I make the UML notation explicit enough that EA's code generator produces DDL that either creates one consolidated, multi-type table; or, several Uni-type tables according to my db design strategy?

Uml Process / How to model "IsATypeOf"
« on: January 13, 2005, 12:51:01 pm »
In the ER Diagramming notation for databases, I can use a connector that says an object is a "Type of" another Object.  For example:  'balls' and 'cylinders' are a type of 'bearing', or, 'employees' and 'customers' are types of 'individuals'.  There is a specification of a data element in the generic object that is used to specify the type of the associated tuple in the "child" table.  Columns applicable to both types are declared in the Parent table.  Columns unique to the typed child table are declared in the child table.  In the physical model, all columns can be declared in one table or in separate tables.

How is all of this modeled in UML?  I've seen something similar in defining actors on a Use Case model, but nothing in the class diagrams

How is the code generation controlled to map into the desired table structure?

Automation Interface, Add-Ins and Tools / Shape Script Variable Text
« on: February 06, 2009, 12:12:18 pm »
I understand that I may use a shape script to add a compartment to an element in rectangle view, but how do I provide compartment text that varies from element to element?  For example, I add a compartment to a class element and add the class several times to my diagram.  The text in each instance of the class element the text needs to be different.  Sample code would be nice.


I washed my face and now its OK for me too.

Pages: 1 ... 44 45 [46] 47