From 61cab93ecfd854f2167a82013a2d860a1cf57f40 Mon Sep 17 00:00:00 2001 From: "Irina Lee [m1]" <irina.lee@etu.upmc.fr> Date: Tue, 24 Jul 2018 13:03:57 +0200 Subject: [PATCH] add getter and adder in connector (eln) --- src/main/java/elntranslator/ELNTConnector.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/elntranslator/ELNTConnector.java b/src/main/java/elntranslator/ELNTConnector.java index 8de1931a37..0451de435e 100644 --- a/src/main/java/elntranslator/ELNTConnector.java +++ b/src/main/java/elntranslator/ELNTConnector.java @@ -38,6 +38,8 @@ package elntranslator; +import java.util.LinkedList; + /** * Class ELNTConnector * Parameters of a ELN connector @@ -49,10 +51,13 @@ package elntranslator; public class ELNTConnector{ private ELNTConnectingPoint connectingPoint1; private ELNTConnectingPoint connectingPoint2; + + private LinkedList<ELNTMidPortTerminal> term; public ELNTConnector(ELNTConnectingPoint _connectingPoint1, ELNTConnectingPoint _connectingPoint2) { connectingPoint1 = _connectingPoint1; connectingPoint2 = _connectingPoint2; + term = new LinkedList<ELNTMidPortTerminal>(); } public ELNTConnectingPoint get_p1() { @@ -62,4 +67,12 @@ public class ELNTConnector{ public ELNTConnectingPoint get_p2() { return connectingPoint2; } + + public LinkedList<ELNTMidPortTerminal> getMidPortTerminal() { + return term; + } + + public void addMidPortTerminal(ELNTMidPortTerminal _term){ + term.add(_term); + } } \ No newline at end of file -- GitLab