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