byucc.jhdl.synth.classparse
Class WeightedOpCode

java.lang.Object
  extended bybyucc.jhdl.synth.classparse.WeightedOpCode

public class WeightedOpCode
extends java.lang.Object

A simple structure to hold a weight and an OpCode. This class only exists so that "if" and "switch" statements can associate their decision values with the OpCodes they lead to.


Constructor Summary
WeightedOpCode(java.lang.Integer weight, OpCode code)
          Construct a new WeightedOpCode with the given weight and OpCode.
WeightedOpCode(int weight, OpCode code)
          Construct a new WeightedOpCode with the given weight and OpCode.
WeightedOpCode(java.lang.String weight, OpCode code)
          Construct a new WeightedOpCode with the given weight and OpCode.
 
Method Summary
 OpCode getOpCode()
          get the OpCode from this WeightedOpCode
 java.lang.String getWeight()
          get the weight for this WeightedOpCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedOpCode

public WeightedOpCode(java.lang.String weight,
                      OpCode code)
Construct a new WeightedOpCode with the given weight and OpCode.

Parameters:
weight - the weight to be associated to this OpCode
code - an OpCode needing a weight

WeightedOpCode

public WeightedOpCode(java.lang.Integer weight,
                      OpCode code)
Construct a new WeightedOpCode with the given weight and OpCode.

Parameters:
weight - the weight to be associated to this OpCode
code - an OpCode needing a weight

WeightedOpCode

public WeightedOpCode(int weight,
                      OpCode code)
Construct a new WeightedOpCode with the given weight and OpCode.

Parameters:
weight - the weight to be associated to this OpCode
code - an OpCode needing a weight
Method Detail

getWeight

public java.lang.String getWeight()
get the weight for this WeightedOpCode

Returns:
this WeightedOpCode's weight

getOpCode

public OpCode getOpCode()
get the OpCode from this WeightedOpCode

Returns:
this WeightedOpCode's OpCode


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.