Skip to content

Commit 887ffa2

Browse files
committed
SYSML2_-265 Corrected implicit ownedPorts specialization for PortUsages.
1 parent bbefa91 commit 887ffa2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

org.omg.sysml/src/org/omg/sysml/adapter/PortUsageAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2021, 2022 Model Driven Solutions, Inc.
3+
* Copyright (c) 2021, 2022, 2025 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -51,7 +51,7 @@ protected String getDefaultSupertype() {
5151
public boolean isOwnedPort() {
5252
PortUsage target = getTarget();
5353
Type owningType = target.getOwningType();
54-
return target.isComposite() && (owningType instanceof PartDefinition || owningType instanceof PartUsage);
54+
return owningType instanceof PartDefinition || owningType instanceof PartUsage;
5555
}
5656

5757
public boolean isSubport() {

org.omg.sysml/src/org/omg/sysml/util/ImplicitGeneralizationMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2021-2022 Model Driven Solutions, Inc.
3+
* Copyright (c) 2021-2025 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -286,7 +286,7 @@ protected ImplicitGeneralizationMap() {
286286

287287
put(PortDefinitionImpl.class, "base", "Ports::Port");
288288
put(PortUsageImpl.class, "base", "Ports::ports");
289-
put(PortUsageImpl.class, "ownedPort", "Parts::Part::ownedPort");
289+
put(PortUsageImpl.class, "ownedPort", "Parts::Part::ownedPorts");
290290
put(PortUsageImpl.class, "subport", "Ports::Port::subports");
291291

292292
put(RenderingDefinitionImpl.class, "base", "Views::Rendering");

0 commit comments

Comments
 (0)