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

BasicTaskCallbackImpl.java

Go to the documentation of this file.
00001 /*
00002  * BasicTaskCallbackImpl.java
00003  *
00004  * Copyright (c) 2003, 2004 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     /**
00034      * Construct the callback.
00035      *
00036      * @param name The symbolic name for this callback.
00037      */
00038     public BasicTaskCallbackImpl(String name)
00039     {
00040     }
00041 
00042     /**
00043      * @param msg The message to send.
00044      */
00045     public void sendMessage(String msg)
00046     {
00047         System.out.println(msg);
00048     }
00049 
00050     /**
00051      * Default implementation of the callback, just print something to stdout.
00052      */
00053     public void MissedDeadline()
00054     {
00055         this.sendMessage("Missed Deadline");
00056     }
00057     
00058     /**
00059      * Default implementation of the callback, just print something to stdout.
00060      */
00061     public void MadeDeadline()
00062     {
00063         this.sendMessage("Made Deadline");
00064     }
00065 }

Generated on Fri Oct 22 07:50:24 2004 for CPU Broker by  doxygen 1.3.9.1