\r
import era.mi.gui.components.BasicGUIComponent;\r
import era.mi.logic.wires.Wire;\r
-import era.mi.logic.wires.Wire.WireEnd;\r
+import era.mi.logic.wires.Wire.ReadEnd;\r
import net.haspamelodica.swt.helper.gcs.GeneralGC;\r
import net.haspamelodica.swt.helper.swtobjectwrappers.Point;\r
import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;\r
public class WireConnectionPoint implements BasicGUIComponent\r
{\r
private final Wire wire;\r
- private final List<WireEnd> wireEnds;\r
+ private final List<ReadEnd> wireEnds;\r
private final int wiresCrossing;\r
\r
public WireConnectionPoint(Wire wire, int wiresCrossing)\r
{\r
this.wire = wire;\r
- List<WireEnd> wireEndsModifiable = new ArrayList<>();\r
+ List<ReadEnd> wireEndsModifiable = new ArrayList<>();\r
for (int i = 0; i < wiresCrossing; i++)\r
wireEndsModifiable.add(wire.createReadOnlyEnd());\r
wireEnds = Collections.unmodifiableList(wireEndsModifiable);\r
}\r
\r
@Override\r
- public WireEnd getConnectedWireEnd(int connectionIndex)\r
+ public ReadEnd getConnectedWireEnd(int connectionIndex)\r
{\r
return wireEnds.get(connectionIndex);\r
}\r