Skip to content
August 19, 2012 / jeroencoenders

Methods in NetworkedDesign (Part 3)

Methods in action

Hi, welcome back. In part 3 I am going to explain one last method type. In part 1 we saw methods in general and Definition Methods. This method type we used to define Properties on Objects. In part 2 we saw Calculation Methods. This method type we used to perform a calculation with the properties of an object to produce one or more properties. The next method type, Transformation Method, we use in case we have defined an object but want to transform it to another definition type.

Transformation Methods

Transformation methods are used when you have defined an object and want to transform it to another definition. So, let’s remember what a Definition Method did for example a Point object. Initially the object only acts as a container, but does not have any properties defined. By for instance using a Definition By Cartesian Coordinates method we ask the user for input and specify the properties on the object. In case of the Definition By Cartesian Coordinates this would be the coordinate system to position the point against and the X, Y and Z coordinates. So this point now exists in the coordinate system. NetworkedDesign has a really neat trick to now tell the system that the point also exists in another coordinate system and automatically calculate the coordinates of this position. We use the Transformation Method for this which performs a bi-directional calculation on the object update between different property sets. For example, a Transform XYZ to Spherical transformation method will automatically add spherical coordinate properties to the point (the azimuth, the inclination and the radial distance) and automatically calculates these from the Cartesian coordinates the object already has. On each update of the point this calculation automatically takes place. Now the point also exists in a second coordinate system. Neat or not?

Other method types

There are a few other method types defined in the original concepts of NetworkedDesign (see my PhD thesis) which I will explain some other time.

As always, if you have any questions or comments, let me know. I am interested in hearing your feedback.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: