|
Hello Jeroen,
If the only difference between the objects is a different symbol, then there's a third option that may well be best. You can have just one object type, but have effectively two symbols for it. Both symbols are drawn in the same symbol editor, e.g. side by side. You then make the left half into one group and the right half into another group, and in each group's Format dialog add a Condition that makes it display only in the desired graph type. That is easily done with a Generator containing type;1 - i.e. the type of the graph, one layer of stack out from the object - compared to be equal to the name of the Graph type. You can then drag the groups so they are on top of each other, and have just one default connectable that does as good a job of possible of being a suitable outline for both. The condition will take care of displaying only the right elements in the right graph.
If the objects need to be different for some reason, another approach is to have a main object type that contains the properties, and then in each graph a different simple wrapper object type with a single property, whose value is an instance of the main object type.
I'd suggest you also double check with your intended users / domain experts to what extent these things really are the same. Ask them tricky questions :-), e.g. if I unplug the cable from my PC and its switch, and connect it with a different cable to a different switch, it still ends up with the same IP and subnet; conversely I can keep the same cable but change a setting in the PC or server, and end up with a different IP and even a different logical subnet. Ask them what are the kinds of changes that are likely to happen in the real world, and how that should be reflected in the models.
All the best,
Steve
|