From e903f427ffa506782e9fd1de5b2ebb6c489c60a2 Mon Sep 17 00:00:00 2001 From: hneemann Date: Thu, 14 Apr 2016 22:01:45 +0200 Subject: [PATCH] Minor changes to In class --- src/main/java/de/neemann/digital/core/io/In.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/neemann/digital/core/io/In.java b/src/main/java/de/neemann/digital/core/io/In.java index 487bf35a0..c6249f8a6 100644 --- a/src/main/java/de/neemann/digital/core/io/In.java +++ b/src/main/java/de/neemann/digital/core/io/In.java @@ -14,6 +14,9 @@ import de.neemann.digital.lang.Lang; */ public class In implements Element { + /** + * The inputs description + */ public static final ElementTypeDescription DESCRIPTION = new ElementTypeDescription(In.class) { @Override public String getDescription(ElementAttributes elementAttributes) { @@ -29,10 +32,14 @@ public class In implements Element { private final ObservableValue output; private final String label; - private final boolean highZ; + /** + * Create a new instance + * + * @param attributes the inputs attributes + */ public In(ElementAttributes attributes) { - highZ = attributes.get(AttributeKey.IsHighZ); + boolean highZ = attributes.get(AttributeKey.IsHighZ); output = new ObservableValue("out", attributes.get(AttributeKey.Bits), highZ); output.setValue(attributes.get(AttributeKey.Default)); label = attributes.get(AttributeKey.Label);