KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
28  * Notification requesting an agent to be registered for receiving
29  * <code>Condition</code> notifications for a scheduled event.
30  * An agent may only register itself.
31  *
32  * @see Scheduler
33  */

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

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

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