Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lp.trans
Interface Consumer<I>

All Known Implementing Classes:
  CollectingModelConsumer, DlpWebappHelper.DlpModelProcessor, EvolpVarWebappHelper.EvolpModelProcessor, EvolpWebappHelper.EvolpModelProcessor

    public interface Consumer<I>

Implementors of this interface can process instances of a specific class. It is used to process stable models as they are generated by smodels so that, in case there are many models, they don't have to be remembered in the memory until we have all of them. Instead of that they are passed one by one the a model consumer.

Version:
  1.0.0
Author:
  Martin Slota

Method Summary
`void` | `afterConsuming()` If the consumer is used to process a sequence of instances, this method should be called after the sequence ends.
`void` | `beforeConsuming()` If the consumer is used to process a sequence of instances, this method should be called before the sequence begins.
`void` | `consume(I item)` Consume `item`.

Method Detail

### consume

    void consume(I item)

  Consume `item`.

  Parameters:
    `item` - the item to consume

### beforeConsuming

    void beforeConsuming()

  If the consumer is used to process a sequence of instances, this method should be called before the sequence begins.

### afterConsuming

    void afterConsuming()

  If the consumer is used to process a sequence of instances, this method should be called after the sequence ends.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD