/**
 * SleepResult is a simple Jini Entry implementation that specifies the
 * number of milliseconds a SleepWorker slept.
 * <br/>
 * This source code is copyright 2008 by Patrick May.
 * All rights reserved.
 *
 * @author Patrick May (patrick@softwarematters.org)
 * @author &copy; 2008 Patrick May.  All rights reserved.
 * @version 1
 */

package org.softwarematters.example.MasterWorker;

import net.jini.core.entry.Entry;

public class SleepResult implements Entry
{
  public Long masterID;
  public Long taskID;
  public Long timeSlept;

  /**
   * The full constructor for the SleepResult class.
   */
  public SleepResult(long masterID,long taskID,long timeSlept)
    {
    this.masterID = new Long(masterID);
    this.taskID = new Long(taskID);
    this.timeSlept = new Long(timeSlept);
    }


  /**
   * The SleepTask constructor for the SleepResult class.
   */
  public SleepResult(SleepTask task)
    {
    masterID = task.masterID;
    taskID = task.taskID;
    timeSlept = task.sleepTime;
    }


  /**
   * The default constructor for the SleepResult class.
   */
  public SleepResult()
    {
    }
}  // end SleepResult

