Be Advised: Classified, FOUO, and PII Content is Not Permitted

How to show usage in an instance table?

Assumptions for this example:

Model has two classes: Car and Tire

Car has a property "Tires" of type Tire [1..*] (i.e. car has 1 or more instances of objects of type Tire)

Model has multiple instances of cars and tires.

 

I want to create an instance table (built in diagram type) that shows all the instances of type Tire and have one of the columns in that table be the instance of the car that uses each tire in its "Tires" property. Basically it would let me see all the tires and also see which cars use that tire (by "use" I don't mean the "usage" relationship, I mean use that tire instance as a value).

I have found how to add derived properties and can easily add columns for properties of objects that the tires own, but I can't find a way to go up the chain of composition.

The closest I have come to doing this is adding a new derived column under "simple navigation", select the "instance" criterion with "target to source" as the direction. The problem with doing that is the column returns the list of every class that the tire instance is used and doesn't let me filter by only objects of type Car. i.e. if a tire instance was also used as a property of another object, all the parent objects show up. I only want parent objects of a particular class (Car) that use that instance of the tire in the Instance table.

Seems like it should be easy but I'm obviously missing something...

Parents Reply Children
  • Thanks Justin! Really appreciate you showing this example. This is close, but I think there's a difference in what I'm asking about. What I need is an instance list of all the tires with cars, where in your example it is an instance list of all the cars with their tires. I need it that way because there is need to see all tire instances regardless if they are used on a car or not...kind of like a LEFT JOIN from SQ, a list of every tire instance and a column to show the car(s) it is used on _if_ the tire happens to be used by a car.

    Also, I'm using classes rather than blocks....I don't think that matters in solving this problem since it's all dealing with instance diagrams.