SandMark version 2.0


sandmark.util.graph.codec
Class RadixGraph

java.lang.Object
  |
  +--sandmark.util.graph.codec.GraphCodec
        |
        +--sandmark.util.graph.codec.RadixGraph

public class RadixGraph
extends GraphCodec


Field Summary
static java.lang.String FULLNAME
           
static java.lang.String SHORTNAME
           
 
Fields inherited from class sandmark.util.graph.codec.GraphCodec
codecs, fullName, graph, kidMap, random, root, shortName, value
 
Constructor Summary
RadixGraph(java.math.BigInteger value)
           
RadixGraph(Graph graph, int[] kidMap)
           
 
Method Summary
(package private) static void createGraph(long value)
           
(package private)  void decode()
          Codecs should implement this method to convert the 'graph' into 'value'.
(package private) static java.math.BigInteger decodeValue(java.util.Vector Coeff, long radix)
           
(package private)  void encode()
          Codecs should implement this method to convert the 'value' into 'graph'.
(package private) static void encodeValue(long value)
           
(package private) static void findRadix(long value)
           
(package private) static long link(long K, long coeff, long i)
           
static void main(java.lang.String[] args)
           
static long minRadix(java.math.BigInteger value)
           
static void pad(long K, java.util.Vector Coeff)
           
(package private) static java.util.Vector radixEncode(java.math.BigInteger value, long radix)
           
 
Methods inherited from class sandmark.util.graph.codec.GraphCodec
codecByName, getKid, randomCodec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FULLNAME

public static final java.lang.String FULLNAME
See Also:
Constant Field Values

SHORTNAME

public static final java.lang.String SHORTNAME
See Also:
Constant Field Values
Constructor Detail

RadixGraph

public RadixGraph(java.math.BigInteger value)

RadixGraph

public RadixGraph(Graph graph,
                  int[] kidMap)
           throws DecodeFailure
Method Detail

encode

void encode()
Description copied from class: GraphCodec
Codecs should implement this method to convert the 'value' into 'graph'.

Specified by:
encode in class GraphCodec

link

static long link(long K,
                 long coeff,
                 long i)

pad

public static void pad(long K,
                       java.util.Vector Coeff)

radixEncode

static java.util.Vector radixEncode(java.math.BigInteger value,
                                    long radix)

minRadix

public static long minRadix(java.math.BigInteger value)

findRadix

static void findRadix(long value)

createGraph

static void createGraph(long value)

encodeValue

static void encodeValue(long value)

decodeValue

static java.math.BigInteger decodeValue(java.util.Vector Coeff,
                                        long radix)

main

public static void main(java.lang.String[] args)

decode

void decode()
      throws DecodeFailure
Description copied from class: GraphCodec
Codecs should implement this method to convert the 'graph' into 'value'. Whenever the decoding failes (eg. because the graph has the wrong shape) the codec should simply throw an exception.

Specified by:
decode in class GraphCodec
DecodeFailure

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002