Just connection
createNode connection (Terminal elementName terminal) = do
element = newOrMappedElement elementName
- if terminal == DIA.Flag.ConnectionPoint then
- createConnector connection element terminal DIA.HasPlainConnector
- else
- createConnector connection element terminal DIA.HasPlainConnector
+ createConnector connection element terminal DIA.HasPlainConnector
createNode connection (RouteLine isHorizontal position) = do
newEntity [
hasName (freshElementName ()),
claim a DIA.AreConnected b
// Returns (connectionRelation :: Maybe Resource, connector attachment relation :: Resource)
resolveAttachmentRelation element terminal defaultAttachmentRelation =
- if terminal == DIA.Flag.ConnectionPoint then
+ if isSubrelationOf terminal DIA.Flag.ConnectionPoint then
(Nothing, flagTypeToAttachmentRelation element)
else
match possibleObject terminal MOD.DiagramConnectionRelationToConnectionRelation with