edu.cmu.emulator
Class ConfigValidator

java.lang.Object
  extended by edu.cmu.emulator.ConfigValidator
All Implemented Interfaces:
CMessageListener

public class ConfigValidator
extends Object
implements CMessageListener


Field Summary
protected  int bytesReceived
           
protected  CommReceiver commReceiver
           
protected  CommSender commSender
           
protected  byte[] configHash
           
protected  DSPConfiguration dspConfig
           
protected  DSPHardwareConfiguration dspHWConfig
           
protected  Object mutex
           
protected  byte[] receivedHash
           
 
Constructor Summary
ConfigValidator(DSPHardwareConfiguration dspHWConfig, DSPConfiguration dspConfig)
           
 
Method Summary
 byte[] generateChecksum()
           
 void messageReceived(CMessage msg)
           
 void validateChecksum(CommSender commSender, CommReceiver commReceiver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dspHWConfig

protected DSPHardwareConfiguration dspHWConfig

dspConfig

protected DSPConfiguration dspConfig

commSender

protected CommSender commSender

commReceiver

protected CommReceiver commReceiver

mutex

protected Object mutex

configHash

protected byte[] configHash

receivedHash

protected byte[] receivedHash

bytesReceived

protected int bytesReceived
Constructor Detail

ConfigValidator

public ConfigValidator(DSPHardwareConfiguration dspHWConfig,
                       DSPConfiguration dspConfig)
Method Detail

generateChecksum

public byte[] generateChecksum()

validateChecksum

public void validateChecksum(CommSender commSender,
                             CommReceiver commReceiver)

messageReceived

public void messageReceived(CMessage msg)
Specified by:
messageReceived in interface CMessageListener


Copyright © 2013. All Rights Reserved.