KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgap > util > ICommand


1 /*
2  * This file is part of JGAP.
3  *
4  * JGAP offers a dual license model containing the LGPL as well as the MPL.
5  *
6  * For licencing information please see the file license.txt included with JGAP
7  * or have a look at the top of class org.jgap.Chromosome which representatively
8  * includes the JGAP license policy applicable for any file delivered with JGAP.
9  */

10 package org.jgap.util;
11
12 /**
13  * Interface for commands (part of the Command pattern)
14  *
15  * @author Klaus Meffert
16  * @since 2.3
17  */

18 public interface ICommand {
19   /** String containing the CVS revision. Read out via reflection!*/
20   final static String JavaDoc CVS_REVISION = "$Revision: 1.2 $";
21
22   /**
23    * Executes the command and returns the result of the operation
24    * @param a_parameters parameters need for executing the command
25    * @return result of operation
26    * @throws Exception in case of any problem
27    */

28   CommandResult execute(Object JavaDoc a_parameters)
29       throws Exception JavaDoc;
30 }
31
Popular Tags