JGAP

org.jgap.distr
Class WorkerCommand

java.lang.Object
  extended by org.jgap.distr.WorkerCommand
All Implemented Interfaces:
ICommand

public class WorkerCommand
extends java.lang.Object
implements ICommand

Command sent by an IMaster instance to an IWorker instance.

Since:
2.3

Constructor Summary
WorkerCommand(java.lang.String a_name)
           
 
Method Summary
 CommandResult execute(java.lang.Object a_parameters)
          Executes the command and returns the result of the operation
 long getAgeMillis()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkerCommand

public WorkerCommand(java.lang.String a_name)
Method Detail

execute

public CommandResult execute(java.lang.Object a_parameters)
                      throws java.lang.Exception
Description copied from interface: ICommand
Executes the command and returns the result of the operation

Specified by:
execute in interface ICommand
Parameters:
a_parameters - parameters need for executing the command
Returns:
result of operation
Throws:
java.lang.Exception - in case of any problem

getName

public java.lang.String getName()

getAgeMillis

public long getAgeMillis()

JGAP