Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

BasicTaskCallbackImpl.java

Go to the documentation of this file.
00001 /*
00002  * BasicTaskCallbackImpl.java
00003  *
00004  * Copyright (c) 2003 The University of Utah and the Flux Group.
00005  * All rights reserved.
00006  *
00007  * This file is licensed under the terms of the GNU Public License.  
00008  * See the file "license.terms" for restrictions on redistribution 
00009  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00010  */
00011 
00012 /**
00013  * @file BasicTaskCallbackImpl.java
00014  *
00015  * Default implementation of a  Qosket::Basic::BasicTaskCallback.
00016  */
00017 
00018 package Qosket.Basic;
00019 
00020 /**
00021  * A subclass of the Qosket::Basic::BasicTaskCallbackPOA class generated from
00022  * the BasicTaskContract.  The implementation is pretty straightforward, it
00023  * just prints out a messages when its methods are called.
00024  *
00025  * @sa BasicTaskCallbackImpl
00026  * @sa Qosket::Basic::BasicTaskQosket
00027  * @sa BasicTaskQosketImpl
00028  * @sa BasicTaskContract.cdl
00029  */
00030 public class BasicTaskCallbackImpl
00031     extends BasicTaskCallbackPOA
00032 {
00033     public BasicTaskCallbackImpl(String name)
00034     {
00035     }
00036 
00037     public void sendMessage(String msg)
00038     {
00039         System.out.println(msg);
00040     }
00041 
00042     public void MissedDeadline()
00043     {
00044         this.sendMessage("Missed Deadline");
00045     }
00046 
00047     public void MadeDeadline()
00048     {
00049         this.sendMessage("Made Deadline");
00050     }
00051 }

Generated on Mon Dec 1 16:29:05 2003 for CPU Broker by doxygen 1.3.4