jtge.engine.handler
Class Sort

java.lang.Object
  extended byjtge.engine.handler.AbstractProducer
      extended byjtge.engine.handler.AbstractHandler
          extended byjtge.engine.handler.Sort
All Implemented Interfaces:
IConsumer

public class Sort
extends AbstractHandler

Provides a means to sort received commands.

Version:
$Revision: 1.3 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Constructor Summary
Sort(IConsumer consumer, ISorter sorter)
          Create a sort handler.
 
Method Summary
 void handle(ICommand command)
          Handle a command.
 
Methods inherited from class jtge.engine.handler.AbstractProducer
forward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sort

public Sort(IConsumer consumer,
            ISorter sorter)
Create a sort handler.

Parameters:
consumer - the target consumer
sorter - the sorter algorithm
Method Detail

handle

public final void handle(ICommand command)
Handle a command.

Parameters:
command - the command to handle


Copyright © 2003-2005 . All Rights Reserved.