edu.memphis.ccrg.lida.framework.mockclasses
Class MockTranslator

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.mockclasses.MockTranslator
All Implemented Interfaces:
Translator

public class MockTranslator
extends java.lang.Object
implements Translator


Field Summary
 cern.colt.bitvector.BitVector data
           
 NodeStructure ns
           
 NodeStructure ns2
           
 cern.colt.bitvector.BitVector v
           
 
Constructor Summary
MockTranslator()
           
 
Method Summary
 NodeStructure translate(cern.colt.bitvector.BitVector data)
          Translates a boolean vector into a node structure.
 cern.colt.bitvector.BitVector translate(NodeStructure structure)
          Translates a node structure into a boolean vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ns

public NodeStructure ns

ns2

public NodeStructure ns2

v

public cern.colt.bitvector.BitVector v

data

public cern.colt.bitvector.BitVector data
Constructor Detail

MockTranslator

public MockTranslator()
Method Detail

translate

public NodeStructure translate(cern.colt.bitvector.BitVector data)
Description copied from interface: Translator
Translates a boolean vector into a node structure.

Specified by:
translate in interface Translator
Parameters:
data - a byte vector with the boolean vector to be translated
Returns:
the node structure associated with the address

translate

public cern.colt.bitvector.BitVector translate(NodeStructure structure)
Description copied from interface: Translator
Translates a node structure into a boolean vector.

Specified by:
translate in interface Translator
Parameters:
structure - the node structure to be translated
Returns:
a byte vector with the boolean address associated with the structure