/*******************************************************************************
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * Copyright (c) 2007, 2018 Association for Decentralized Information Management
* in Industry THTH ry.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
*
* Contributors:
* VTT Technical Research Centre of Finland - initial API and implementation
+ * Semantum Oy - Added getTerminals & getConnectionPoints
*******************************************************************************/
package org.simantics.diagram.content;
import java.util.HashMap;
import java.util.Map;
+import java.util.Set;
import org.simantics.db.Resource;
rightToLeft.put(connectionPoint, terminal);
}
+ /**
+ * @since 1.36.0
+ */
+ public Set<Resource> getTerminals() {
+ return leftToRight.keySet();
+ }
+
+ /**
+ * @since 1.36.0
+ */
+ public Set<Resource> getConnectionPoints() {
+ return rightToLeft.keySet();
+ }
+
}