edu.wpi.prc.templates.java.validator
Class SpotCheck

java.lang.Object
  extended by edu.wpi.prc.templates.java.validator.SpotCheck

public class SpotCheck
extends java.lang.Object

Stores all spot-check information needed by the result validator.

Author:
James Baldassari

Field Summary
private  byte[] acceptedData
           
private  byte[] clientData
           
private  java.lang.String resultID
           
 
Constructor Summary
SpotCheck(java.lang.String resultID, byte[] clientData, byte[] acceptedData)
          Constructor specifying all memebers.
 
Method Summary
 byte[] getAcceptedData()
           
 byte[] getClientData()
           
 java.lang.String getResultID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultID

private final java.lang.String resultID

clientData

private final byte[] clientData

acceptedData

private final byte[] acceptedData
Constructor Detail

SpotCheck

public SpotCheck(java.lang.String resultID,
                 byte[] clientData,
                 byte[] acceptedData)
Constructor specifying all memebers.

Parameters:
resultID - The ID of this result.
clientData - The result data computed by the client.
acceptedData - The accepted result data computed by the project server.
Method Detail

getResultID

public java.lang.String getResultID()
Returns:
Returns the ID of this result.

getClientData

public byte[] getClientData()
Returns:
Returns the result data computed by the client.

getAcceptedData

public byte[] getAcceptedData()
Returns:
Returns the accepted result data computed by the project server.