edu.cmu.emulator.controlComm
Class SetDelayMessage

java.lang.Object
  extended by edu.cmu.emulator.controlComm.CMessage
      extended by edu.cmu.emulator.controlComm.TupleMessage
          extended by edu.cmu.emulator.controlComm.SetDelayMessage

public class SetDelayMessage
extends TupleMessage


Field Summary
protected  int filledTuples
           
protected static int O_DELAY
           
protected static int O_INDEX
           
protected static int TUPLE_SIZE
           
 
Fields inherited from class edu.cmu.emulator.controlComm.TupleMessage
I_NUM_TUPLES, I_TUPLE_0
 
Fields inherited from class edu.cmu.emulator.controlComm.CMessage
D_AUX_FPGA, I_BODY, I_DEST, I_SOURCE, I_TYPE, MAX_LENGTH, msg, S_EMU_CONTROLLER, T_DCC_LOCAL, T_MISC_COMMAND, T_READ_REG, T_REG_VALUE, T_SET_DELAY, T_SET_PHASE_SHIFT, T_SET_SCALE, T_SET_TIMED_SCALE, T_STORE_SIGNAL, T_TEST, T_WRITE_REG
 
Constructor Summary
SetDelayMessage(int numTuples)
           
 
Method Summary
 void addDelaySet(int index, int delay)
           
private  int getDelay(int tupleNum)
           
private  int getIndex(int tupleNum)
           
 int getNumTuples()
           
 String toString()
           
 
Methods inherited from class edu.cmu.emulator.controlComm.CMessage
getByte, getBytes, getDest, getLength, getSource, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filledTuples

protected int filledTuples

O_INDEX

protected static final int O_INDEX
See Also:
Constant Field Values

O_DELAY

protected static final int O_DELAY
See Also:
Constant Field Values

TUPLE_SIZE

protected static final int TUPLE_SIZE
See Also:
Constant Field Values
Constructor Detail

SetDelayMessage

public SetDelayMessage(int numTuples)
Method Detail

getNumTuples

public int getNumTuples()

addDelaySet

public void addDelaySet(int index,
                        int delay)

getIndex

private int getIndex(int tupleNum)

getDelay

private int getDelay(int tupleNum)

toString

public String toString()
Overrides:
toString in class CMessage


Copyright © 2013. All Rights Reserved.