Bug #5562

StandardModelingRules judgeConnection returns nondeterministic connection type results for unfinished connections

Added by Tuukka Lehtonen almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:2014-12-23
Priority:4Due date:2015-01-16
Assignee:Tuukka Lehtonen% Done:

100%

Category:-Spent time:3.00 hours
Target version:1.18.1
Release notes:Developers: StandardModelingrules.judgeConnection now returns a deterministic connection type based on alphanumeric connection type name sorting a possibly unfinished connection has multiple possible connection types.
Tags: diagram, connection
Story points-
Velocity based estimate-
ReleaseSimantics 1.18.1Release relationshipAuto

Description

Connections that are in some contexts considered unfinished, such as connection from a component terminal to a disconnected flag, can currently have a connection type calculated for them in a nondeterministic manner.

We should add a mechanism to make it possible to specify a default connection type for a connection point relation. If the system is otherwise incapable of determining an single unambiguous connection type for a connection, it should use this default connection type if and only if all the connection points in the connection type evaluation agree on the default type.

As a secondary measure, if no default type can be used, StandardModelingRules should make the connection type selection out of the possible alternatives by selecting the connection type with the name that sorts first in ascending lexicographic order.

Associated revisions

Revision 30733
Added by Tuukka Lehtonen almost 3 years ago

Added STR.DefaultsToConnectionType to allow determining a default connection type for connection points relations.
Use this in StandardModelingRules and make the ambiguous connection type case type selection deterministic by choosing connection type with the first name in ascending lexicographical order.

refs #5562

History

#1 Updated by Tuukka Lehtonen almost 3 years ago

  • Tags set to diagram, connection

#2 Updated by Tuukka Lehtonen almost 3 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#3 Updated by Tuukka Lehtonen almost 3 years ago

  • Status changed from Feedback to Closed

#4 Updated by Tuukka Lehtonen almost 3 years ago

  • Release set to 17

#5 Updated by Tuukka Lehtonen over 2 years ago

  • Release notes set to Developers: StandardModelingrules.judgeConnection now returns a deterministic connection type based on alphanumeric connection type name sorting a possibly unfinished connection has multiple possible connection types.

Also available in: Atom PDF