mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 17:04:42 -04:00
refactoring concerning equalsDescription
This commit is contained in:
parent
ada7401dbf
commit
f8b42d95cf
@ -470,7 +470,7 @@ public class Circuit {
|
|||||||
public ObservableValues getOutputNames() throws PinException {
|
public ObservableValues getOutputNames() throws PinException {
|
||||||
ArrayList<ObservableValue> pinList = new ArrayList<>();
|
ArrayList<ObservableValue> pinList = new ArrayList<>();
|
||||||
for (VisualElement ve : visualElements) {
|
for (VisualElement ve : visualElements) {
|
||||||
if (ve.getElementName().equals(Out.DESCRIPTION.getName())) {
|
if (ve.equalsDescription(Out.DESCRIPTION)) {
|
||||||
String name = ve.getElementAttributes().getLabel();
|
String name = ve.getElementAttributes().getLabel();
|
||||||
if (name == null || name.length() == 0)
|
if (name == null || name.length() == 0)
|
||||||
throw new PinException(Lang.get("err_pinWithoutName"));
|
throw new PinException(Lang.get("err_pinWithoutName"));
|
||||||
|
@ -29,7 +29,7 @@ public class NetList implements Iterable<Net> {
|
|||||||
add(w);
|
add(w);
|
||||||
|
|
||||||
for (VisualElement ve : circuit.getElements())
|
for (VisualElement ve : circuit.getElements())
|
||||||
if (ve.getElementName().equals(Tunnel.DESCRIPTION.getName())) {
|
if (ve.equalsDescription(Tunnel.DESCRIPTION)) {
|
||||||
Vector pos = ve.getPos();
|
Vector pos = ve.getPos();
|
||||||
Net found = null;
|
Net found = null;
|
||||||
for (Net n : netList)
|
for (Net n : netList)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user