jtge.engine.handler
Class AbstractProducer

java.lang.Object
  extended byjtge.engine.handler.AbstractProducer
Direct Known Subclasses:
AbstractHandler, Input

public abstract class AbstractProducer
extends java.lang.Object

Captures producers abstraction.

The purpose of a producer is to generate commands.

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

Constructor Summary
protected AbstractProducer(IConsumer consumer)
          Create a producer.
 
Method Summary
protected  void forward(ICommand command)
          Send a command to the target consumer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProducer

protected AbstractProducer(IConsumer consumer)
Create a producer.

Parameters:
consumer - the target consumer
Method Detail

forward

protected final void forward(ICommand command)
Send a command to the target consumer.

Parameters:
command - the command to send


Copyright © 2003-2005 . All Rights Reserved.