byucc.jhdl.base
Class StateObject

java.lang.Object
  extended bybyucc.jhdl.base.StateObject
All Implemented Interfaces:
java.io.Serializable

public class StateObject
extends java.lang.Object
implements java.io.Serializable

This is used to represent the state of a circuit at a given clock cycle. It is Serializable, so it can be written to file or loaded from a file.

See Also:
Serialized Form

Constructor Summary
StateObject(int[] values, int[][] largeValues, java.io.Serializable[] checks)
          Basic constructor for cycle 0
StateObject(int cycle, int step, int[] values, int[][] largeValues, java.io.Serializable[] checks)
          Basic constructor
 
Method Summary
 java.io.Serializable[] getChecks()
          Access the Serializable checks
 int getCycle()
          Access the cycle count
 int[][] getLargeValues()
          Access the large values
 int getStep()
          Access the step count
 int[] getValues()
          Access the small values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateObject

public StateObject(int cycle,
                   int step,
                   int[] values,
                   int[][] largeValues,
                   java.io.Serializable[] checks)
Basic constructor

Parameters:
cycle - the cycle for this state
values - any values up to 32 bits
largeValues - any values larger than 32 bits
checks - any Serializable checks

StateObject

public StateObject(int[] values,
                   int[][] largeValues,
                   java.io.Serializable[] checks)
Basic constructor for cycle 0

Parameters:
values - any values up to 32 bits
largeValues - any values larger than 32 bits
checks - any Serializable checks
Method Detail

getCycle

public int getCycle()
Access the cycle count

Returns:
the cycle count

getStep

public int getStep()
Access the step count

Returns:
the step count

getValues

public int[] getValues()
Access the small values

Returns:
the small value array

getLargeValues

public int[][] getLargeValues()
Access the large values

Returns:
the large value array

getChecks

public java.io.Serializable[] getChecks()
Access the Serializable checks

Returns:
the checks array


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