Compound Types, Mediators and Recipricated links
-
-
I'm trying to set up a mediator - and it seems to be part of the functionality of compound types, or am I just getting confused here.
I'd like to set up a type to hold the relationship between two adjoining rail stations, much like the Adjoining Relationship used by the Adjoins property of a Location, except I want to speciy the Rail Line that links the two stations as well.
I can work out how to create the type, but in order to link two stations I have to go into the mediator type and add the second one in manually. Is there a way to easily create the reciproated link so that when I am in station1 and add station2 as an Adjacent Station station1 will appear in the Adjacent Station list for station2 as well?
Thanks.-
The simplest way to do this is with the "suggested properties" feature on the type definition page.
For example, you could create the "Station" type, then the "Adjoining Relationship" type. Then add an "adjoins" property to Station with an expected type of Adjoining Relationship. Now click through to the Adjoining Relationship type definition page. There should be a property under "Suggested Properties" whose expected type is Station. Double click it to give it a name, and your reciprocal property should be all set.
-