Simple Machine

util
Class BitString

java.lang.Object
  extended by util.BitString

public class BitString
extends Object

String of bit values; used for access to instruction fields when decoding instruction.


Constructor Summary
BitString()
           
BitString(BitString bs)
           
BitString(int aLength, long aValue)
           
 
Method Summary
 int byteLength()
           
 BitString concat(BitString aBitString)
           
 boolean equals(Object o)
           
 long getValue()
           
 int getValueAt(int startBit, int numBits)
           
 int hashCode()
           
 int length()
           
 Byte[] toBytes()
           
 void writeToByUser(DataModel model, int address)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitString

public BitString(int aLength,
                 long aValue)

BitString

public BitString(BitString bs)

BitString

public BitString()
Method Detail

length

public int length()

getValue

public long getValue()

getValueAt

public int getValueAt(int startBit,
                      int numBits)

concat

public BitString concat(BitString aBitString)

toBytes

public Byte[] toBytes()

writeToByUser

public void writeToByUser(DataModel model,
                          int address)

byteLength

public int byteLength()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Simple Machine

Copyright © 2010, 2011 Mike Feeley. All Rights Reserved.