Merge branch 'development' of https://gitlab.lrz.de/lrr-tum/students/eragp-misim...
[Mograsim.git] / net.mograsim.logic.core / src / net / mograsim / logic / core / types / Bit.java
index 8bff357..e627810 100644 (file)
@@ -18,6 +18,11 @@ public enum Bit implements StrictLogicType<Bit>
                this.symbol = symbol;
        }
 
+       /**
+        * Returns if the Bit is binary, this is only true for <code>ZERO</code> and <code>ONE</code>.
+        * 
+        * @return true if and only if <code>this == ONE || this == ZERO</code>
+        */
        public boolean isBinary()
        {
                return this == ONE || this == ZERO;
@@ -64,9 +69,9 @@ public enum Bit implements StrictLogicType<Bit>
                return bits;
        }
 
-       public BitVector toVector(int length)
+       public BitVector toVector(int width)
        {
-               return BitVector.of(this, length);
+               return BitVector.of(this, width);
        }
 
        @Override