KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > scalagent > scheduler > RemoveConditionListener


1 /*
2  * Copyright (C) 2001 - 2005 ScalAgent Distributed Technologies
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17  * USA.
18  *
19  * Initial developer(s): ScalAgent Distributed Technologies
20  * Contributor(s):
21  */

22 package com.scalagent.scheduler;
23
24 import fr.dyade.aaa.agent.*;
25
26 /**
27  * Notification requesting an agent to be unregistered for receiving <code>Condition</code> notifications
28  * for a scheduled event.
29  * An agent may only unregister itself.
30  *
31  * @see Scheduler
32  */

33 public class RemoveConditionListener extends Notification {
34   /** condition name */
35   String JavaDoc name;
36
37   /**
38    * Creates an item.
39    *
40    * @param name condition name
41    */

42   public RemoveConditionListener(String JavaDoc name) {
43     this.name = name;
44   }
45
46
47   /**
48    * Provides a string image for this object.
49    *
50    * @return a string image for this object
51    */

52   public StringBuffer JavaDoc toString(StringBuffer JavaDoc output) {
53     output.append('(');
54     output.append(super.toString(output));
55     output.append(",name=");
56     output.append(name);
57     output.append(')');
58     return output;
59   }
60 }
61
Popular Tags